file selected in form changes in next php page?!

From: Date: Sun, 21 Jan 2001 15:20:21 +0000
Subject: file selected in form changes in next php page?!
Groups: php.general 
Request: Send a blank email to php-general+get-35897@lists.php.net to get a copy of this message
Dear group, in my first page i have a form selcting a file. The names i used were csvfile, csv_file, and my_file. After submitting the form the filename changed to a totally different file, like C:\PHP\php72C3.TMP or C:\PHP\phpD2B4.TMP (windows, apache, php4, internet explorer 5 as well as Mozilla 6) What is happening? code below. Chris ##FORM <form name="form1" enctype="multipart/form-data" method="post" ACTION=<?php echo "$PHP_SELF";?> NAME="beheerform"> <input type="hidden" name="FILE_INVOEREN" value="zoek file (op eigen computer)"> <input type="file" name="my_file" onChange='javascript:alert(this.value);'> <input type="submit" name="Submit" value="Invoeren"> </form> ## NEXT PAGE (in main) if (isset($FILE_INVOEREN)): echo $my_file; if ($my_file==0) die ("Selecteer een file!"); -------------------------------------------------------------------- -- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands -- --------------------------------------------------------------------

« previous php.general (#35897) next »