|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-07-18 14:28 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 00:00:01 2025 UTC |
When 'file_upload' setting in php.ini set to Off, then any form submited via POST with 'enctype="multipart/form-data"' in its defenition will not export $_POST and $HTTP_POST_VARS on submission. Below is an example script that demonstrates the problem. <?php echo '<pre>'; print_r($HTTP_POST_VARS); echo '</pre>'; ?> <html><form method="post" action="test.php" enctype="multipart/form-data"><input type="submit" name="test" value="Click Me"></form> Script Output -- file_upload == On -- Array ( [test] => Click Me ) -- file_upload == Off -- Array ( )