note 39597 added to tutorial.forms

From: Date: Tue, 03 Feb 2004 19:56:53 +0000
Subject: note 39597 added to tutorial.forms
Groups: php.notes 
Request: Send a blank email to php-notes+get-64612@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/tutorial.forms.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39597 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39597&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39597&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64612) next »