in checkout.php, I have a form submit to itself for validation.
If a payment method is not entered, it will come back in the same form and say "you forgot to choose payment method." (I got this part to work)
If payment method IS entered, it must post the method to the next page which is submit.php (How do I do this part without messing up the first part?)
here's what I have:
if(isset($_POST['submit']))
{
if(empty($_POST['method']))
{
echo '<br><BR><font color=ff0000><small>You forgot to choose payment method</small></font><br />';
}
else
{
WHAT DO I PUT HERE?
}
}
<form action=checkout.php method=post>
<input type='radio' name='method' value='Purchase order'>Purchase order
<input type='radio' name='method' value='Credit card'>Credit card
<input type='submit' name='submit' value='submit'>