note 35360 added to tutorial.forms
| From: | dev6 at es11 dot com | Date: | Thu, 28 Aug 2003 15:43:59 +0000 |
| Subject: | note 35360 added to tutorial.forms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55248@lists.php.net to get a copy of this message | ||
This page says that $_REQUEST contains the contents of the $_FILES variable. This is untrue as of
PHP 4.3.0.
Also, it should be mentioned which of the three variables get 'priority' in $_REQUEST.
Post Variables take precedence over Get variables. For example:
<form action="test.php?var=1" method="post">
<input type="hidden" name="var" value="2">
<input type="submit" name="submit" value="Submit">
</form>
If this form is submitted, $_POST['var'] gets the value 2, $_GET['var'] gets the
value 1, and $_REQUEST['var'] also gets the value 2.
(I have no idea how the $_COOKIE fits into this precedence)
----
Manual Page -- http://www.php.net/manual/en/tutorial.forms.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35360
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35360&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35360&report=yes