file upload

O

old.shihan

Guest
Hi,

I have the following problem, I have a form for clanwars. So I want to add: comments, date, screenshot, demo.

I already made the mysql code for this. and nearly everything works fine. but I don't know how to upload demo/screenie to the server.

all this is in one FORM with enctype="multipart/form-data". the demo will be $demo and screenshot = $screenshot, when you press submit the page will reload and a script will be started which pastes everything into the table and uploads the file.

but it doesn't. I use copy($dest, $source); and I tried everything but it never was ok. how shall I do that? the script is in the directory "matches" and I want to upload the files to matches/uploads , but how can I say the script that it shall paste the files there.

has anyone an idea?

thx
 

Users who are viewing this thread

Top Bottom