4 email address's with one to send mail, How?
Posted: Fri Feb 29, 2008 8:46 pm
Hi, i have something already done but its not going any further.
Firstly i want to click on a drop down menu to choose an option like my code: This code is assigned in processBookingMail.php:
And booking.html:
How ever i seem to be stuck, as i'm directed to processBookingMail.php it stays on that page and doesn't direct me to the other php pages as i want. the other php pages r mail pages and will direct me again to the success or error page after that.
Any hints?
Firstly i want to click on a drop down menu to choose an option like my code: This code is assigned in processBookingMail.php:
Code: Select all
<?php
if(isset($_POST['frmRequest'])) {
if ($_POST['mailbooking'] == '1') {
header("Location: booking1Mail.php");
}
elseif ($_POST['mailbooking'] == '2') {
header("Location: booking2Mail.php");
}
elseif ($_POST['mailbooking'] == '3') {
header("Location: booking3Mail.php");
}
elseif ($_POST['mailbooking'] == '4') {
header("Location: booking4Mail.php");
}
else {
die("Error");
}
exit;
}
?>Code: Select all
<form action="processBookingMail.php" method="post" enctype="multipart/form-data" onsubmit="return check(frmRequest)" name="frmRequest" id="frmRequest">
****with this inside the code******
<select name="mailbooking">
<option value="Choose job">Choose Salon </option>
<option value="1">job1</option>
<option value="2">job2</option>
<option value="3">job3</option>
<option value="4">job4</option>
</select>Any hints?