Knish72
-
Posts
2 -
Joined
-
Last visited
Posts posted by Knish72
-
-
Hello!
I'm attempting to rewrite handle_form.php to validate the age element
//validate age: if (isset($_REQUEST['age'])) { $age = $_REQUEST['age']; if ($age == '0-29') { echo '<p><b>You are 0-29!</b></p>'; }elseif ($age == '30-60') { echo '<p><b>You are 30-60!</b></p>'; }else($age == '60+'){ echo '<p><b>You are 60+!</b></p>'; }
That's what I have so far. Thanks very much, it's a great book so far!
Review And Pursue
in PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
Posted
Thanks guys but before moving forward I'd like to know why I am getting a parse error on the 60+ else conditional line: