In the sample above, the code dose not work. Even if you
copy and paste the sample code you will get:
Hi . You are 0 years old
The code should look more like this on the main page:
<?php echo '<p>Hello World</p>'; ?>
<form action="action.php"
methhod="get">
<p>Your name: <input type="text"
name="name" /></p>
<p>your age: <input type="text"
name="age" /></p>
<p><input type="submit" /></p>
Then the action page should look like this:
Hi <?php echo htmlspecialchars($_GET['name']); ?>.
You are <?php echo (int)$_GET['age']; ?> years old
----
Server IP: 69.147.83.197
Probable Submitter: 198.236.13.36 (proxied: 198.236.44.110)
----
Manual Page -- http:
//www.php.net/manual/en/tutorial.forms.php
Edit -- https://master
.php.net/note/edit/74837
Del: integrated -- h
ttps://master.php.net/note/delete/74837/integrated
Del: useless -- http
s://master.php.net/note/delete/74837/useless
Del: bad code -- htt
ps://master.php.net/note/delete/74837/bad+code
Del: spam -- https:/
/master.php.net/note/delete/74837/spam
Del: non-english --
https://master.php.net/note/delete/74837/non-english
Del: in docs -- http
s://master.php.net/note/delete/74837/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/74837
Reject -- https://mast
er.php.net/note/reject/74837
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|