Bug #17876 Updated: passing variables from one page to another

From: Date: Thu, 20 Jun 2002 16:28:27 +0000
Subject: Bug #17876 Updated: passing variables from one page to another
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11579@lists.php.net to get a copy of this message
ID: 17876 Updated by: sander@php.net Reported By: aruls_karai@yahoo.com -Status: Open +Status: Bogus Bug Type: Output Control Operating System: windows 2000 server windows XP 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-06-20 12:00:55] aruls_karai@yahoo.com problem No:1 <form action="action.php" method="post"> Your name:<input type="text" name="name"> Your age :<input type="text" name="age"> <input type="submit"> </form> when i am running the above, i am not getting the output,but the output as "HI your age years old" (ie) without input from the above ACTION.PHP Hi <? echo $_post["name"];?> Your age <? echo $_post["age"];?> years old Problem 2 <html> <body> <?echo'<a href="mini.php?name=kevin">hi i am kevin</a>';?> </body> </html> when i am running the above file, i am getting "welcome" as the output,but the address bar showing the http://webserver/mini.php?name=kevin mini.php as under <?php echo "welcome $name"; ?> I have tried in APACHE 2.0.35 also;(both in ISAPI module and CGI binary executable) My machine is P4 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17876&edit=1

« previous php.bugs (#11579) next »