Jump to content


Photo

very newbie question


  • Please log in to reply
1 reply to this topic

#1 raister

raister
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 17 April 2006 - 06:29 AM

this is a simple code but i cant seem to find the problem about POSTing

this 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!

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 April 2006 - 08:22 AM

Whats the problem?> Can you explains what is not working?.

Is <?php echo $_POST["age"]; ?> not outputting anything? If it isnt then try:
<?php echo $age; ?> as I think you server has register_globals turned on.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users