Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 3.128.31.227
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/tjpepper/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/tjpepper/public_html/homework3b.txt
<!--
        Assignment: Homework3 (b)
        Author: Tim Pepper
        Due: 2/17
        Goal: Modify the Tuna Cafe Survey to include another question that asks the user to check what he
		or she likes about the service. Create check box items that include the following responses: a. The
		marvelous food preparation. b. The affordable prices. c. The speedy services. d. Just like tuna. e. None
		of the above. Output the user's selections from the form-handling script in a bullet list. Make sure that
		you output a message if the user fails to select anything.
-->

<font color=blue size=4>
Tuna Cafe Survey
<hr>

<form action=homework3b2.php method=post>
<?php
        $menu = array("Tuna Casserole", "Tuna Sandwich", "Tuna Pie", "Grilled Tuna", "Tuna Surprise");
        $response = array("The marvelous food preparation", "The affordable prices", "The speedy service", "I just
		like tuna", "None of the above");
	$bs= 2;
        print "Indicate your favorite - <br>";
        for($i=0; $i<count($menu); $i++)
        {
                print "<input type=checkbox name=prefer[] value=$i> $menu[$i]";
                if($i == $bs)
                        print "<b><font color=red> Our Best Seller!!!</font></b>";
                print "<BR>";
        }

	print "<hr>";
	print "What was your favorite part of your visit?<br>";
	for($m=0; $m<count($response); $m++)
	{
		print"<input type=checkbox name=respond[] value=$m> $response[$m]";
		print"<br>";
	}
?>
<p>
<input type=submit value=Submit> <input type=reset value=Reset>
</form>
<hr>
<a href=index.html>Home</a>
</font>


Stv3n404 - 2023