php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17876 passing variables from one page to another
Submitted: 2002-06-20 12:00 UTC Modified: 2002-06-20 12:28 UTC
From: aruls_karai at yahoo dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.2.1 OS: windows 2000 server windows XP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
42 + 7 = ?
Subscribe to this entry?

 
 [2002-06-20 12:00 UTC] aruls_karai at yahoo dot 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-20 12:28 UTC] sander@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-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 23:01:29 2024 UTC