Is register_globals off? If it is, you should be using the $_FILES array. ---John Holmes...
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 08, 2002 1:35 PM Subject: [PHP] For my next bug... Upload filename gets blanked out > In the form below, when I specify a file to upload (in $filename), it gets > blanked out by the time I hit the Upload button and the page refreshes. My > test file is a text file that certainly does *not* exceed the max_file_size > (it goes to about 27 k). > > <FORM ENCTYPE = "multipart/form-data" ACTION = "index.php?page=Uploadfile" > METHOD = "POST"> > <TABLE BGCOLOR = "#000000" BORDER = "0" CELLPADDING = "0" CELLSPACING = > "0"> > <TR> > <TD ALIGN = "CENTER"> > <DIV CLASS = "title">Upload</DIV> > <SPAN CLASS = "header">Upload (filename):</SPAN> <INPUT TYPE = > "FILE" NAME = "filename"> > <INPUT TYPE = "HIDDEN" NAME = "MAX_FILE_SIZE" VALUE = > "102400"><BR><BR> > <INPUT TYPE = "SUBMIT" VALUE = "Upload"> > </TD> > </TR> > </TABLE> > </FORM> > > ---------------------------------------------------------------------------- ---- > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php