php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23615 Anything after the "?" Question mark doesn't work
Submitted: 2003-05-13 14:14 UTC Modified: 2003-05-13 14:50 UTC
From: melo00 at msn dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.1 OS: Windows 2000 Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: melo00 at msn dot com
New email:
PHP Version: OS:

 

 [2003-05-13 14:14 UTC] melo00 at msn dot com
If I have a link that will pass on a variable to a function within a script, the value is not passed, 

for example:



http://mywebsite/welcome.php?ID=1


the value that comes after the ? does not get read into the script, so if the function is



<?php
          function Welcome($ID)
          {
           echo "The session ID is " . $ID;
          }

?>

the function will display .....

         "The session ID is     "

It doesn't even recognize that the value was assigned to ID,  Is there something that I didn't turn on in my PHP configuration, or is it a PHP bug

By the way, Im running apache server 2 (latest version as of May 10, 2003) PHP4.3.1 and MySQL

And please, If my little function above is not coded correctly, please excuse me, it's only a sample I came up with on the fly to show my problem, and I have never ever before coded PHP before 2 days ago, but if I understand PHP correctly, thats the closest I can come to a real function without looking at actual code


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-05-13 14:16 UTC] derick@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.

...
 [2003-05-13 14:50 UTC] helly@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
'off'. See http://www.php.net/release_4_2_0.php for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.

You just encountered register_globals=off.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 14:01:34 2025 UTC