Posted by skim1114 on 09/02/07 00:28
For whatever it's worth I finally figured it out...maybe I didn't give
enough info on the post:
if (isset($_REQUEST['age'])) {
$age = $_REQUEST['age'];
if ($age == '0-29') {
$message2 = '<p>Your age selection was between 0-29</p>';
}elseif ($age == '30-60') {
$message2 = '<p>You age selection was between 30-60</p>';
}elseif ($age == '60+') {
$message2 = '<p>You age selection was between 60+</p>';
}else{
$message2 = NULL;
echo '<p><font color="red">Age must be selected!</font></p>';
}
}else{ //not set
$age = NULL;
echo '<p><font color="red">You forgot to select your age!</font></
p>';
}
Navigation:
[Reply to this message]
|