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" method="post" ACTION=<?php 
echo "$PHP_SELF";?>> NAME="beheerform">
CH>  <input type="hidden" name="FILE_INVOEREN" value="zoek file (op eigen 
computer)">>
CH>  <input type="file" name="my_file" 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 : [EMAIL PROTECTED]
 GSM    : (+372) 56491109



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