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! Link to comment https://forums.phpfreaks.com/topic/7584-very-newbie-question/ 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. Link to comment https://forums.phpfreaks.com/topic/7584-very-newbie-question/#findComment-27637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.