Jump to content

Archived

This topic is now archived and is closed to further replies.

raister

very newbie question

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.