include ("mysql.css"); ?>
Suggestion Box
This is for entering a suggestion about your class in the CS Lab. function show_form($name = "", $period="8", $comment="" ) { $options = array("1", "2", "3", "4", "5", "6", "7", "8"); echo "
"; echo "Enter Name:"; echo "
"; echo "
Select Period:
"; echo "
"; for ($i=0; $i
$options[$i]\n"; } echo "
"; echo "
"; echo "$comment
"; echo "
"; } ?> if (!isset($name) ){ show_form(); } else { if(empty($name) || $period==8 || empty($comment) ) { echo "You did not fill in all the fields.
"; echo "
Please try again.
"; if ($period == 8) echo "
There is no class here 8th Period!"; show_form( $name, $period, $comment); } else { echo " Thank you $name in period $period. Your suggestion is:
"; echo "
"; $comment = stripslashes($comment); echo " $comment"; echo "
"; $fp = fopen("suggestionbox.txt", "a"); fputs ($fp, "Name:".$name."\n"); fputs ($fp, "Period:".$period."\n"); fputs ($fp, $comment."\n"); fclose($fp); } } ?>
Back to the the Page on Intelligent Forms