Server IP : 172.16.15.8 / Your IP : 3.136.236.178 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/wcdavis/public_html/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<HTML> <BODY> <CENTER> <FONT color=blue size=4> Tuna Cafe Survey Result </CENTER> <HR> <?php $prefer = $_POST["prefer"]; $menu1 = array("Tuna Casserole", "Tuna Sandwich", "Tuna Pie", "grilled tuna", "Tuna Surprise"); $menu2 = array("The marvelous food preparation", "The affordable prices", "The speedy service", "Just like tuna", "None of the above"); if(count ($prefer) == 0) print "Oh No! Pick your favorite menu item.<HR>"; else { print "Your favorite menu items are: <UL>"; foreach($prefer as $item) { print "<LI>$menu1[$item]"; } print "</UL><HR>"; } $reason = $_POST["reason"]; if(count ($reason) == 0) print "Please pick a reason why you like the Tuna Cafe."; else { print "<P>The reason(s) why you like the Tuna Cafe: <UL> "; foreach($reason as $j) { print "<LI>$menu2[$j]</LI>"; } print "</UL><HR>"; } ?> <A HREF=Assignment3a.php>Back to the Survey!</A><p> <A HREF=index.html>Back home</A><p> </FONT> </BODY> </HTML>