note 93815 deleted from tutorial.forms by danbrown
| From: | danbrown@php.net | Date: | Thu, 01 Oct 2009 01:49:29 +0000 |
| Subject: | note 93815 deleted from tutorial.forms by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-161191@lists.php.net to get a copy of this message | ||
Note Submitter: lost
----
I need help i recently bought html,xhtml and css for dummies.
I am trying to create a form using the post method, i used the example shown on this sites tutorial
after days of headbanging trying to create my own.
The code i used was
<form action="action.php" method="post">
<p>Your name: <input type="text" name="name" /></p>
<p>Your age: <input type="text" name="age" /></p>
<p><input type="submit" /></p>
</form>
and
Hi <?php echo htmlspecialchars($_POST['name']); ?>.
You are <?php echo (int)$_POST['age']; ?> years old.
And all i am getting back is
Hi . You are years old.
when i submit.
Help?????