ID: 27325 Updated by: [EMAIL PROTECTED] Reported By: rui at crocware dot com -Status: Open +Status: Bogus -Bug Type: cURL related +Bug Type: *General Issues Operating System: winxp PHP Version: 4.3.4 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. You need to put enctype="multipart/form-data" into the <form> tag..and your code is broken in many other ways too..uploaded files, etc. are in $_FILES array. Previous Comments: ------------------------------------------------------------------------ [2004-02-19 23:30:54] rui at crocware dot com Description: ------------ refer to previous Bug #17958 <input type=file> loses $_POST vars I got the same problem when I use Natscape 7.1, but there is no problem in IE6. How can I fix it. thanks Reproduce code: --------------- <form name="frmUpdateCust" method="POST" action="<? echo $PHP_SELF;?>" onSubmit="javascrip: return checkFileInput()"> <br> <font face="Arial, Helvetica, sans-serif">Select source CSV file: <input type="file" name="csvfile" size="50"> <br> </font><br> <input type="submit" name="Submit" value="Submit"> </form> Expected result: ---------------- when I retrieve: $csvfile=$_POST['csvfile'] In IE6, there is no problem In Natscapt 7.1, the var is short cut expected result: $csvfile="C:\Apache\Apache2\htdocs\crocwareweb\csv file\test.cvs" Actual result: -------------- actuall result: $csvfile="test.cvs" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27325&edit=1
