php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #15714 Variables from outside PHP page doesn't mention new $_* arrays
Submitted: 2002-02-25 11:23 UTC Modified: 2002-07-03 18:53 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: m dot ford at lmu dot ac dot uk Assigned: philip (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.1.1 OS:
Private report: No CVE-ID: None
 [2002-02-25 11:23 UTC] m dot ford at lmu dot ac dot 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."


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-30 11:12 UTC] philip@php.net
Okay, time for a rewrite.
 [2002-06-17 14:49 UTC] hholzgra@php.net
fixed on language.variables.predefined.php
but not language.variables.external.php
 [2002-06-20 12:42 UTC] philip@php.net
This is critical, I'm working on this until done.  Sorry for the delay.
 [2002-06-28 03:16 UTC] derick@php.net
Fix status so that philip gets reminders again
 [2002-07-03 18:53 UTC] philip@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 15:01:28 2024 UTC