Ok, well I have to confirmation page working, it shows the data the user entered in the previous form.
But when I click send, it doesn't actually send the email.
This is at the start of thje script
$firstname = $_POST['firstname'];
$surname = $_POST['surname'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$guests = $_POST['guests'];
$addrees = $_POST['address'];
$postcode = $_POST['postcode'];
$address2 = $_POST['townsuburb'];
//Date
$day = $_POST['day'];
$month = $_POST['month'];
$year = $_POST['year'];
$message1 = $_POST['message'];
This is part of the form
<table>
<tr>
<td><form>
<input type=button value="Back"
onCLick="history.back()">
</form></td>
<td><form action="<?php echo $PHP_SELF;?>">
<input type="submit" value="Send!" />
</form></td>
</tr>
</table>
Here is the mail() function
$message = include 'email.php';
$to = "my_email@is_private.com";
$suject = "Enquiry/Booking";
mail($to, $subject, $message);
And here is email.php, its basically a collection of data, and put into readable sentences.
<? echo $firstname ", " $surname ?> . has requested at a function addressed <? echo $address ", " $address2 ", " $postcode ?> on the <? echo $day ", " $month ", " $year?> and will have approximately <? echo $guests?> guests. <? echo $firstname ", " $surname ?> also said <? echo $meassage1 ?>.
<? echo $firstname?> can be contacted on:
Ph. <? echo $phone?>
E-mail: <? echo $email?>