note 93815 added to tutorial.forms
| From: | lost at osu1 dot php dot net | Date: | Thu, 01 Oct 2009 01:47:56 +0000 |
| Subject: | note 93815 added to tutorial.forms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161190@lists.php.net to get a copy of this message | ||
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?????
----
Server IP: 69.147.83.197
Probable Submitter: 92.251.255.12
----
Manual Page -- http://www.php.net/manual/en/tutorial.forms.php
Edit -- https://master.php.net/note/edit/93815
Del: integrated -- https://master.php.net/note/delete/93815/integrated
Del: useless -- https://master.php.net/note/delete/93815/useless
Del: bad code -- https://master.php.net/note/delete/93815/bad+code
Del: spam -- https://master.php.net/note/delete/93815/spam
Del: non-english -- https://master.php.net/note/delete/93815/non-english
Del: in docs -- https://master.php.net/note/delete/93815/in+docs
Del: other reasons-- https://master.php.net/note/delete/93815
Reject -- https://master.php.net/note/reject/93815
Search -- https://master.php.net/manage/user-notes.php