php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18361 Tutorial on php.net uses deprecated $HTTP_*_VARS variables
Submitted: 2002-07-15 18:43 UTC Modified: 2002-07-15 19:59 UTC
From: drecaise at hotmail dot com Assigned:
Status: Closed Package: Website problem
PHP Version: 4.2.1 OS: all
Private report: No CVE-ID: None
 [2002-07-15 18:43 UTC] drecaise at hotmail dot com
On http://www.php.net/tut.php there is an example of how to get form variables data into php variables. In this example $HTTP_POST_VARS["name"]; is used instead of:   $_POST["name"] Since the manual tells the world that $HTTP_*_ is deprecated I think it is sensible to make sure this beginners tutorial gives those beginners a good example.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-15 18:49 UTC] drecaise at hotmail dot com
<edit> grammar correction </edit>
 [2002-07-15 18:57 UTC] philip@php.net
tut.php is in phpweb, not phpdoc.

On a related note, $HTTP_*_VARS will most likely exist forever.  A much more serious problem on tut.php is how the words convey that register_globals is always on, like in PHP3.  See bug #17428.
 [2002-07-15 19:55 UTC] jmcastagnetto@php.net
Changed example to use $_POST instead. Added notes and a subsection with a quick description of the changes that can affect old code.
 [2002-07-15 19:59 UTC] jmcastagnetto@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.

Changed example to use $_POST instead. Added notes and a subsection with a quick description of the changes that can affect old code.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 14:01:32 2024 UTC