Re: file selected in form changes in next php page?!

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

« previous php.general (#35917) next »