Now that I've finally figured out what I need to be learning it is sessions.

(explaining the purpose of the code)

The form is real simple. The customer will only put in the amount they want.

Code:
<form action="order.php" method="post" style="height: 460px">
	order01<input name="order01" style="width: 40px" type="text" /> <br />
	order02<input name="order02" style="width: 40px" type="text" /><br />
	order03<input name="order03" style="width: 40px" type="text" /><br />
	<br />
	<input type="submit" value="Submit"onclick="return confirm('Are you sure you want to submit the form?');" />			
	<input name="reset" id="reset" type="reset" value="Reset" />
	</form>
The php will only print what is ordered and leave out any '0's it encounters.
Now what I don't know how to do is get information from this php (Confirmation Page) to the email. All I want is only the information that is printed on the confirmation page. I've tried to read up on sessions but i don't comprehend it that well. If anyone can show me an example based upon this code I can learn it. Thanks to all that have any comments or critiques.


PHP Code:
<?php
$order01 
$_POST["order01"];
$order02 $_POST["order02"];
$order03 $_POST["order03"];

if ( 
$order01 ) {
    echo 
" amount of $order01 <br />";
}

if ( 
$order02 ) {
    echo 
" amount of $order02 <br />";
}

if ( 
$order03 ) {
    echo 
" amount of $order03 <br />";
}
?>
<html>
<body>
<form method="post" action="">
<input type=button value="Back" onClick="history.go(-1)">
<input name="Submit" type="submit" value="Place Order" onClick="testResults(this.form)">
</form>
</body>
</html>