AW: [PHP] Uploading Files!

From: Date: Tue, 04 Nov 2003 06:16:56 +0000
Subject: AW: [PHP] Uploading Files!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-168438@lists.php.net to get a copy of this message
Hi Dimitri, > I'm new to this new PHP thing and man it's frusterating. Anyway, I'm not > gonna tell you my life story, but I just need to know how to allow users > to > upload files to my server . I've already made a form with the <input > name="whatever" type="file" and then a program that should get the > varibles > [name] and [tmp_name] using $_POST. For some reason it's not working. > Could > someone tell me how to do it, or what I'm doing wrong? [Daniel Diehl] Take a look at http://www.php.net/manual/en/features.file-upload.php . I think this will solve your problem. You have to set the enctype "enctype="multipart/form-data"" in the form tag. Greet, Daniel

« previous php.general (#168438) next »