I have a quotation form where the user fills out the boxes, clicks submit and the isset function works to see if its set before returning a quote.
<?php
if (isset($_POST['submit'])) {
$total = $_POST['ssize'] + $_POST['condition'] + $_POST['opticalDrive'];
?> Price is <?php echo $total;
}
?>
This quotation only appears after clicking the submit button. If the user wishes to accept the quote i also want a form to appear with that quote. But i cant figure out how to include the HTML form in with that PHP so make it appear with it after the submit button.
This is an example of my form:
<form method="post">
First Name: <input type="text" name="fname" />
Surname: <input type="text" name="sname" />
E-Mail Address: <input type="text" name="email" />
House Number: <input type="text" name="HouseNo" />
Street Name: <input type="text" name="Street" />
Town/City: <input type="text" name="towncity" />
Post Code: <input type="text" name="Postcode" />
</form>
So how can I combine them both to appear at the same time after the submit button?