...

View Full Version : Gathering information from a multipage form.



ghost2012
10-31-2009, 10:51 AM
Ok I know this is real simple code and I'm almost done just need help on the last page.

This being the html form.



<form action="order001.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 name="Submit1" type="submit" value="submit" />
</form>


I use the "> than zero" because on the form that I'm working with all the inputs have values with 0. This way the only information that I receive on the confirmation page is only what the customer orders. Its real simple and I'm still learning.



<?php
$order01 = $_POST["order01"];
$order02 = $_POST["order02"];
$order03 = $_POST["order03"];

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

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

if ( $order03 > 0 ) {
echo " amount of $order03 <br />";
}
?>


So now with the last part that I need the guru's help with.
How do I get the data that is on the confirmation page to the last page which would be a php email.

Phil Jackson
10-31-2009, 11:25 AM
you could use sessions



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum