If the user selects other, and you want it to display what they typed in the text box, you could use an if statement. For example:
if ($alert == 'other') {
echo $otherrs;
} else {
echo $other;
}
I don't understand what you want to do with the date. If you want the current date, wouldn't that be the date the form is submitted? Or did you mean you didn't want the date field to be displayed if they select open? Or do you want to display the date they type in the date field if they select open.
To get the current date:
if ($description == 'Open') {
// Echo current date
$today = getdate();
$month = $today['month']; $mday = $today['mday'];
$year = $today['year'];
echo "$month $mday, $year";
} else {
echo $description;
}
To get the date they type in in your date field. . .
if ($description == 'Open') {
echo $month . " " . $date . ", " . $year . "";
} else {
echo $description;
}
But you set your values to MM DD YY, which will echo
MM DD YY rather then December 6, 2002 or whatever date they enter. I'd get rid of the value field from your form.
Also, watch your caps. For your field names on the form, you used Open (with a capital O) but you used other (with a lowercase o).
Hope this helps.
Cgraz