Bug #15714: Variables from outside PHP page doesn't mention new $_* arrays
| From: | m dot ford at lmu dot ac dot uk | Date: | Mon, 25 Feb 2002 16:23:08 +0000 |
| Subject: | Bug #15714: Variables from outside PHP page doesn't mention new $_* arrays | ||
| Groups: | php.bugs php.doc | ||
| Request: | Send a blank email to php-bugs+get-1021@lists.php.net to get a copy of this message | ||
From: m.ford@lmu.ac.uk
Operating system:
PHP version: 4.1.1
PHP Bug Type: Documentation problem
Bug description: Variables from outside PHP page doesn't mention new $_* arrays
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 bug report at http://bugs.php.net/?id=15714&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15714&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15714&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15714&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15714&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15714&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15714&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15714&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15714&r=submittedtwice