Here is the HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
	
<html xmlns="http://www.w3.org/1999/xhtml">


<head>
	<title>Food Order Form</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
	<body>
		<h1>A Chinese Dinner!</h1>
			<form name="dinner" action="wolfram0302.php" method="get">
				<table border="6" cellspacing="1" width="600">
					<tr>
						<td>First Name:<input name="first" />
							Last Name: <input name="last" />
						</td><br />
					</tr>
					<tr>
						<td>Delivered to: <input name="location" /> 
							Phone: <input name="phone" />
						</td>
					</tr>	
					<tr>	
						<td valign="top">      
						<fieldset>
						<legend align="left">Main Item</legend>
						<table>
					<tr>
						<td>
							<input type="radio" name="main" value="Steamed Rice" />
							Steamed Rice ($1.00)
						</td>
					</tr>
					<tr>
						<td>
							<input type="radio" name="main" value="Fried Rice" />
							Fried Rice ($1.50)
						</td>
					</tr>
					<tr>
						<td>
							<input type="radio" name="main" value="Fried Noodle" />
							Fried Noodle ($1.75)
						</td>
					</tr>
					</tr>
					</table>
					</fieldset>
					<tr>	
						<td valign="top">      
						<fieldset>
						<legend align="left">Free Soup</legend>
						<table>
					<tr>
						<td>
					<input type="radio" name="soup" value="Wonton Soup" />
					Wonton Soup
			   </td>
		</tr>
		<tr>
               <td>
					<input type="radio" name="soup" value="Egg Drop Soup" />
					Egg Drop Soup
			   </td>
		</tr>
		<tr>
               <td>
					<input type="radio" name="soup" value="Sour and Spicy" />
					Sour and Spicy 
				</td>
		</tr>
        </table>
		</fieldset>
	</tr>
	<tr>
		<td><p><center>Choose and number of the following items ($1.35 each):</center></p>
		<input type="checkbox" name="bbqchicken"> 			BBQ Chicken
		<input type="checkbox" name="chickencroccoli"> 		Chichen w/ Broccoli
		<input type="checkbox" name="friedgreen"> 			Fried Green Beans<br />
		<input type="checkbox" name="mongolianbeef"> 		Mongolian Beef
		<input type="checkbox" name="sweetchicken"> 		Sweet and Sour Chicken
		<input type="checkbox" name="blackchicken"> 		Black Pepper Chicken<br />
		<input type="checkbox" name="chickenmeatball"> 		Chicken Meatball
		<input type="checkbox" name="honeychicken"> 		Honey Chicken
		<input type="checkbox" name="orangechicken"> 		Orange Chicken<br />
		<input type="checkbox" name="sweetchicken"> 		BBQ Chicken
		<input type="checkbox" name="teriyakichicken"> 		Teriyaki Chicken
		<input type="checkbox" name="buttermushrooms"> 		Butter Mushrooms<br />
		<input type="checkbox" name="eggroll"> 				Egg Roll
		<input type="checkbox" name="mixedvegidel"> 		Mixed Vegetable Delight
		<input type="checkbox" name="seafooddel"> 			Seafood Delight
	
		<tr>
			<td><center>
				<input type="submit" value="Submit">
				<input type="reset" value="Cancel">
				</center>
			</td>	
		</tr>
</table>
</form>
</body>
</html>

and php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
	
<html xmlns="http://www.w3.org/1999/xhtml">


	<title>Hong Kong Express Order Form results</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
			</head>
				<body>
					<?php
							$first = $_GET['first'];
							$last = $_GET['last'];
							$location = $_GET['location'];
							$phone = $_GET['phone'];
							$main = $_GET['main'];
							$soup = $_GET['soup'];
							
							$1= $_GET['bbqchicken'];
							//$2= $_GET['chickenbroccoli'];
							//$3= $_GET['friedgreen'];
							//$4= $_GET['mongolianbeef'];
							//$5= $_GET['sweetchicken'];
							//$6= $_GET['blackchicken'];
							//$7= $_GET['chickenmeatball'];
							//$8= $_GET['honeychicken'];
							//$9= $_GET['orangechicken'];
							//$10= $_GET['sweetchicken'];
							//$11= $_GET['teriyakichicken'];
							//$12= $_GET['buttermushrooms'];
							//$13= $_GET['eggroll'];
							//$14= $_GET['mixedvegidel'];
							//$15= $_GET['seafooddel'];	
							//$tax=.086;
							//$1= 1.35;
							//$2= 1.35;
							//$3= 1.35;
							//$4= 1.35;
							//$5= 1.35;
							//$6= 1.35;
							//$7= 1.35;
							//$8= 1.35;
							//$9= 1.35;
							//$10= 1.35;
							//$11= 1.35;
							//$12= 1.35;
							//$13= 1.35;
							//$14= 1.35;
							//$15= 1.35;	
							

							$mainCost;

								if ($main == "Steamed Rice")
									{
										$mainCost = 1.00;
									}
								elseif ($mainCost == "Fried Rice")
									{
										$mainCost = 1.50;
									}
								else
									{
										$mainCost = 1.75;
										$main = "Fried Noodles";
									}
									
									//function price($tax, $mainCost, $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, &$15){
									//$price=($mainCost+ $1+ $2+ $3+ $4+ $5+ $6+ $7+ $8+ $9+ $10+ $11+ $12+ $13+ $14+ $15);
									//$price=number_format($price, 2);
									//echo "$price";
									//}
							
									//function total ($price, $tax){
									//$total=($price+($price*$tax));
									//$total=number_format($total,2);
									//echo "$total";
									//}

									//$1= $_GET['bbqchicken'];
									//$2= $_GET['chickenbroccoli'];
									//$3= $_GET['friedgreen'];
									//$4= $_GET['mongolianbeef'];
									//$5= $_GET['sweetchicken'];
									//$6= $_GET['blackchicken'];
									//$7= $_GET['chickenmeatball'];
									//$8= $_GET['honeychicken'];
									//$9= $_GET['orangechicken'];
									//$10= $_GET['sweetchicken'];
									//$11= $_GET['teriyakichicken'];
									//$12= $_GET['buttermushrooms'];
									//$13= $_GET['eggroll'];
									//$14= $_GET['mixedvegidel'];
									//$15= $_GET['seafooddel'];	
									
									echo "Name: $first $last <br />";
									echo "Address: $location <br />";
									echo "Tel: $phone <br />";
									echo "Main Item: $main <br />";
									echo "Soup: $soup <br />";
									echo "$1";
									//echo "Items: $1	$2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12 $13 $14 $15";
	
																		
									

echo '<br /><a href="http://barney.gonzaga.edu/~bwolfram/wolfram0302.html">Try Again!</a>';

?>
</body>
</html>

I know I am all messed up but want to be able to print the total price in addition to the user info

Any help would be much appreciated!
-Ben

My main problem is in the check boxes.

here is the assignment in the attached doc, number 2

hi this is nathen just a tip for u use extract($_REQUEST); on the top of your page first so that it reduces the lines of code to get form elements every time ie you just remove the below in your code and on placing extract($_REQUEST);

$first = $_GET['first'];
							$last = $_GET['last'];
							$location = $_GET['location'];
							$phone = $_GET['phone'];
							$main = $_GET['main'];
							$soup = $_GET['soup'];
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.