From: rui at crocware dot com
Operating system: winxp
PHP version: 4.3.4
PHP Bug Type: cURL related
Bug description: refer to previous Bug #17958 <input type=file> loses $_POST vars
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 bug report at http://bugs.php.net/?id=27325&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27325&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27325&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27325&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27325&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27325&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27325&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27325&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27325&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27325&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27325&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27325&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27325&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27325&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27325&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27325&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27325&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27325&r=float