Okay, here is my delima.
Right now I have a form that gathers user information and performs error checking to ensure all required fields have been filled in. The form action I'm using is this:
<form method=post action="/order.php" name="orderForm">
The submit button code is this:
<a href="javascript:window.document.orderForm.submit();" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('submit2','','order/images/submit_on.jpg',1)"><img src="order/images/submit_off.jpg" name="submit2" width="91" height="24" border="0" id="submit2"></a>
<input type="hidden" name="been_submitted" value="YES" />
At this point I have not gathered any credit card information. I want it to check to make sure everything is filled in correctly and if it passes then the form info is sent to a secure page to get the credit card info and process the transaction.
If it does not pass, then it displays on the orderform what fields still need to be filled in.
How do I do this? Do I need an if else statement for the form action and how would I do it if so?
Thanks.