Jump to content


very newbie question

  • Please log in to reply
1 reply to this topic

#1 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...

<form action="p.php" method="POST">
Enter your age: <input type="text" name="age" />
<input type="submit" />

and this is my code for p.php...

You are <?php echo $_POST["age"]; ?> years old!

please help! :{

#2 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