note 39597 rejected from tutorial.forms by vincent
| From: | vincent@php.net | Date: | Tue, 03 Feb 2004 19:59:20 +0000 |
| Subject: | note 39597 rejected from tutorial.forms by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-64613@lists.php.net to get a copy of this message | ||
Note Submitter: erictxradio@hotmail.com
----
I am a complete NOOB at PHP and was stepping through these examples. I successfully created and
implemented the Name and Age exercise.
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php
if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE') !== false) {
echo 'You are using Internet Explorer<br />';
}
?>
<form action="action.php" method="post">
Your name: <input type="text" name="name" />
Your age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>
But I was wondering how would you add variables to this simple test..example
if age is greater then 40, the return would say WOW your old!
and if less then 40 would say "blah blah blah"?
In PHPHELL..;-)
Thanks