ID:               17301
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Bogus
 Bug Type:         Variables related
 Operating System: Windows 98
 PHP Version:      4.2.1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[2002-05-17 22:05:53] [EMAIL PROTECTED]

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

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=17301&edit=1

Reply via email to