Hi all,
I am in need of a little assistance with some PHP. I usually use ASP with no problems but I need to make a few email forms using PHP and I keep getting errors…
my form is…
<form action="sendmail.php" method="post" name="tac" id="tac">
<table width="500" border="0" align="center">
<tr>
<td width="295">Name:
<input name="name" type="text" id="name"></td>
<td width="295">Email Address:
<input name="email" type="text" id="email"></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2"><strong>Arrival Information </strong></td>
</tr>
<tr>
<td>Date:
<input name="date" type="text" id="date" value="DD/MM/YY" size="15"></td>
<td>Time:
<input name="time" type="text" id="time" size="10">
<select name="hour" id="hour">
<option>Select One</option>
<option value="AM">AM</option>
<option value="PM">PM</option>
</select></td>
</tr>
<tr>
<td>Flight Number:
<input name="flight" type="text" id="flight" size="15"></td>
<td>Departing From:
<input name="departing" type="text" id="departing" size="20"></td>
</tr>
<tr>
<td>Number of passengers:
<input name="passengers" type="text" id="passengers" size="10"></td>
<td>Luggage:
<select name="luggage" id="luggage">
<option>Select One</option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<textarea name="notes" cols="65" id="notes">Additional Notes</textarea>
</div></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Send">
</div></td>
</tr>
</table>
</form>
and the php is…
<?php
$EmailFrom = Trim(stripslashes($_POST['EmailFrom']));
$EmailTo = "[email protected]";
$Subject = "Taxi Booking";
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$date = $_REQUEST['date'] ;
$time = $_REQUEST['time'] ;
$hour = $_REQUEST['hour'] ;
$flight = $_REQUEST['flight'] ;
$departing = $_REQUEST['departing'] ;
$passengers = $_REQUEST['passengers'] ;
$luggage = $_REQUEST['luggage'] ;
$notes = $_REQUEST['notes'] ;
mail('[email protected]', 'New Taxi Booking',"Name: $name","Email Address: $email","Arrival Information- Date: $date", "Time: $time, $hour","Flight No. $flight","Departing From: $departing","Passengers: $passengers","Luggage $luggage","Notes: $notes");
header("Location: http://www.startouristservices.com/thankyou.htm");
?>
The test page is http://www.startouristservices.com/transporttest.htm
I would be grateful of any help and pointing out any monumental screwups is ok too