Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- saving a file received by a form
August 30, 2004, 2:34 am
rate this thread
I am just another newbie programmer in PHP and web developping and in
the three days I have been messing up with it I have been able to do
all the things I wished except one. When I receive variables from a
form, like a string with the name I can read them with $_POST["name"]
without problem. But when the form sends to me a file, I haven't found
how to save it into my system.
I guess I can access to it with $_POST["file"], fopen it, and then do
fread and fwrite in another file. But this seems to me like a too much
unconfortable way of doing it, so I ask here what is the normal way of
saving a file sent by a form.
Lot of thanks for your help
- Tim Van Wassenhove
August 30, 2004, 1:41 am