= count($_POST)) { include_once 'order1.html'; } elseif (!isEnteredPersonalDetails()) { include_once 'order2.html'; } elseif (isset($_POST['postageEnquiry']) && 'Postage Enquiry' == $_POST['postageEnquiry']) { include_once 'thankyouenquiry.html'; } elseif (!isEnteredOrderDetails()) { $idOrder = insertRecord(); if (isset($_POST['flAust']) && 'Y' == $_POST['flAust']) { // offer cheque of paypal include_once 'order3.html'; } else { // get email details for quote include_once 'order4.html'; } } elseif (isset($_POST['paymentChoice']) && 'cheque' == $_POST['paymentChoice']) { include_once 'bycheque.html'; } ?>