raister Posted April 17, 2006 Share Posted April 17, 2006 this is a simple code but i cant seem to find the problem about POSTingthis is my code for p.html...<html><body><form action="p.php" method="POST">Enter your age: <input type="text" name="age" /><input type="submit" /></form></body></html>and this is my code for p.php...<html><body>You are <?php echo $_POST["age"]; ?> years old!</body></html>please help! :{tnx! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted April 17, 2006 Share Posted April 17, 2006 Whats the problem?> Can you explains what is not working?.Is [i]<?php echo $_POST["age"]; ?>[/i] not outputting anything? If it isnt then try:[i]<?php echo $age; ?>[/i] as I think you server has register_globals turned on. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.