php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17301 Uhh.. just read the description
Submitted: 2002-05-17 22:05 UTC Modified: 2002-05-17 22:18 UTC
From: shilo27560 at yahoo dot com Assigned:
Status: Not a bug Package: Variables related
PHP Version: 4.2.1 OS: Windows 98
Private report: No CVE-ID: None
 [2002-05-17 22:05 UTC] shilo27560 at yahoo dot com
I have recently upgraded to php version 4.2.1 and before that everything was working fine, but now evertime i use a variable which is defined by user input on a seperate html form or gets its value from a query string it get this error:

Notice: Undefined variable: room in c:\program files\apache\apache\htdocs\php\index.php on line 10

Notice: Undefined variable: room in c:\program files\apache\apache\htdocs\php\index.php on line 11


even though i reach it like this, http://aptiva/php/index.php?room=Aptiva
it still comes out with the same error

If you are still unclear what i am trying to say (im not the best at explaining things) then check out the below exapmle of a code that would give me this error:

I would type in the url for this script while including the query string of ?username=hi&password=hito
which would leed to this script,

<?
echo"
The username is <? echo $username; ?>
The Password is <? echo $password; ?>
"
?>

and i would get the error of :

Notice: Undefined variable: username in c:\program files\apache\apache\htdocs\php\index.php on line 3

Notice: Undefined variable: password in c:\program files\apache\apache\htdocs\php\index.php on line 4

Can anyone help me here?

PS. i am a twelve year old so be descriptive
also i am using apache as my server software

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-17 22:18 UTC] jimw@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be 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.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Thu Nov 30 18:01:27 2023 UTC