|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-02 01:04 UTC] scott at datalink dot net dot au
[2002-03-02 06:07 UTC] derick@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 08:00:01 2025 UTC |
Forms with an enctype of 'multitype/form-data' do not register the POST variables. Here's how to reproduce: ----- Short Script Follows ----- <? print_r($HTTP_POST_VARS); ?> <form method=post enctype='multipart/form-data'> <input type='text' value='<? print $foo ?>' name='foo'> <input type='submit'> </form> ----- End Script ----- Run the script above. It is simple enough - it has a form that submits to itself, and then displays the HTTP_POST_VARS variable. When I remove the enctype='multipart/form-data' attribute from the form tag, the script works fine (i.e. the variable 'foo' appears). The enctype directive appears to surpress the variables.