Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.146.206.246
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/rlbarner/www/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/rlbarner/www/form7.php
<BODY BGCOLOR="#D9D9F3">
<FONT FACE="Sylfaen">
<CENTER>
<H2>Selection & Using Arrays in Forms: Tuna Cafe Survey</H2>
<HR>

<Form action=action7.php method=post>
<?php
	// Pg. 90
	$menu = array('Tuna Casserole', 'Tuna Sammich', 'Tuna Pie', 
		'Grilled Tuna', 'Tuna Surprise');
	$bestseller = 2;
	print "Indicate your favourite:<BR>";
	
	//creating checkbox - see pg. 32-33
	for($i=0; $i<count($menu); $i++)
	{	print "<INPUT type=checkbox name=prefer[] 
			value=$i> $menu[$i]";
		if($i==$bestseller)
			print "<FONT COLOR=red><B> Our best seller! 
				</B></FONT>";
		print "<BR>";
	}
?>

<!-- for input buttons, the 'value' is the word(s) displayed on the 
button -->
<INPUT type=submit value=Submit>
<INPUT type=reset value=Reset>
</Form>
<HR>
<A HREF=index.html>Index</A>
</CENTER>
</FONT>
</BODY>

Stv3n404 - 2023