Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="OrderForm" action="Form.php" method="get" >
- <div class="Form-Title">First Name:</div>
- <input class="Box-Input" type="text" name="FirstName" maxlength="20">
- <br>
- <div class="Form-Title">Last Name:</div>
- <input class="Box-Input" type="text" name="LastName" maxlength="20">
- <br>
- <br>
- <div class="Form-Title">Contact Number:</div>
- <input class="Box-Input" pattern="[0-9.]+" type="text" name="ContactNo" maxlength="11">
- <br>
- <div class="Form-Title">Email Address:</div>
- <input class="Box-Input" name="Email" type="text" id="Email" maxlength="50">
- <br>
- <br>
- <div class="Form-Title">Date/Time:</div>
- <input class="DateTime-Input" name="Date" type=Date min=2014-12-11>
- <input class="DateTime-Input" name="Time" type=Time min=9:00 max=21:00>
- <br>
- <br>
- <input class="SRButtons" type="submit" name="SubmitForm" value="Submit" onclick="ValidateFields()">
- <br>
- </form>
- <html>
- <body>
- <?php
- if(isset($_GET['SubmitForm'])){
- $To = "rajan2615@hotmail.co.uk";
- $From = $_GET['Email'];
- $First_Name = $_GET['FirstName'];
- $Last_Name = $_GET['LastName'];
- $Subject = "Table Booking";
- $Subject2 = "Table Booking Confirmation";
- $Message = $First_Name . " " . $Last_Name . " Wrote the Following:" . "nn" . $_GET['We Would like to Book the Current Table, my Detail and the Booking Details are in this email too.'];
- $Message2 = "Here is a Copy of Your Message " . $first_name . "nn" . $_GET['We Would like to Book the Current Table, my Detail and the Booking Details are in this email too.'];
- $Headers = "From:" . $From;
- $Headers2 = "To:" . $To;
- mail($To,$Subject,$Message,$Headers);
- mail($From,$Subject2,$Message2,$Headers2);
- echo "Mail Sent. Thank you " . $First_Name . ", We Will Contact You Shortly.";
- }
- ?>
- Thank You: <?php echo $_GET ["FirstName"]; ?><br>
- Your Table is Booked for: <?php echo $_GET ["Date"]; ?><br>
- At: <?php echo $_GET ["Time"]; ?><br>
- Confirmation is Sent To: <?php echo $_GET ["Email"]; ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement