Bug #15714 Updated: Variables from outside PHP page doesn't mention new $_* arrays
| From: | derick@php.net | Date: | Fri, 28 Jun 2002 07:16:32 +0000 |
| Subject: | Bug #15714 Updated: Variables from outside PHP page doesn't mention new $_* arrays | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-12344@lists.php.net to get a copy of this message | ||
ID: 15714
Updated by: derick@php.net
Reported By: m.ford@lmu.ac.uk
-Status: Critical
+Status: Assigned
Bug Type: Documentation problem
PHP Version: 4.1.1
Assigned To: philip
New Comment:
Fix status so that philip gets reminders again
Previous Comments:
------------------------------------------------------------------------
[2002-06-20 12:42:13] philip@php.net
This is critical, I'm working on this until done. Sorry for the delay.
------------------------------------------------------------------------
[2002-06-17 14:49:37] hholzgra@php.net
fixed on language.variables.predefined.php
but not language.variables.external.php
------------------------------------------------------------------------
[2002-05-30 11:12:04] philip@php.net
Okay, time for a rewrite.
------------------------------------------------------------------------
[2002-02-25 11:23:07] m.ford@lmu.ac.uk
The manual page "Variables from outside PHP"
(language.variables.external.php), under "HTML Forms (GET and POST)",
doesn't mention the new $_* arrays, nor that track_vars is now always
on. I suggest revision to read something like the following:
"When a form is submitted to a PHP script, any variables from that form
will be automatically made available to the script by PHP. If the
track_vars configuration option is turned on (always, as of version
4.0.3), then these variables will be located in the associative arrays
$HTTP_POST_VARS, $HTTP_GET_VARS, and/or $HTTP_POST_FILES, according to
the source of the variable in question. From version 4.1.0 onward,
they will also be in the new superglobal arrays $_POST, $_GET and
$_FILES; POST and GET values will also be in the composite array
$_REQUEST.
"For more information on these variables, please read Predefined
variables.
[Example 7-1 snipped]
"When the above form is submitted, the value from the text input will
be available in $HTTP_POST_VARS['username'] and, from version 4.1.0,
$_POST['username'] and $_REQUEST['username']. If the register_globals
configuration directive is turned on, then the variable will also be
available as $username in the global scope."
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=15714&edit=1