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  --
--------------------------------------------------------------------

 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to