Bug #17876: passing variables from one page to another

From: Date: Thu, 20 Jun 2002 16:00:56 +0000
Subject: Bug #17876: passing variables from one page to another
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11574@lists.php.net to get a copy of this message
From: aruls_karai@yahoo.com Operating system: windows 2000 server windows XP PHP version: 4.2.1 PHP Bug Type: Output Control Bug description: passing variables from one page to another 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 bug report at http://bugs.php.net/?id=17876&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=17876&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=17876&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=17876&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=17876&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=17876&r=support Expected behavior: http://bugs.php.net/fix.php?id=17876&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=17876&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=17876&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=17876&r=globals

« previous php.bugs (#11574) next »