pixeltrace
Members-
Posts
577 -
Joined
-
Last visited
Never
Everything posted by pixeltrace
-
by the way, my problem here is when i am about to send the form it just goes to the sendmail.php nothing esle is happening. the pop up that should appear telling that the message has been sent is not appearing i dont get any emails too. need help please. thanks!
-
guys, ??? i really really need your help on this. i have two page form. eform.php and sendmail.php the eform is for the form that needs to be filled up and the sendmail is the page that verifies and sends the information from the form via email. below is my code for the eform.php [code]<table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><table width="641" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="641"> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"><form id="form1" name="form1" method="post" action="sendmail.php"> <table width="617" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="4"> </td> <td width="95" valign="top"><span class="item1">Salutation:</span></td> <td width="10"> </td> <td width="332" valign="top"> <select name="salutation" class="item1f"> <option value="Mr." selected="selected">Mr.</option> <option value="Mr.">Ms.</option> <option value="Mr.">Mrs.</option> </select></td> <td width="182"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Surname:</span><span class="item2">*</span></td> <td> </td> <td valign="top"> <input name="surname" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Firstname:<span class="item2">*</span></span></td> <td> </td> <td valign="top"><input name="firstname" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">E-mail: </span><span class="item2">*</span> </td> <td> </td> <td valign="top"><input name="email" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Telephone: </span><span class="item2">*</span></td> <td> </td> <td valign="top"><input name="phone" type="text" class="item1f" /></td> <td class="item2">* please include country and area code </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top" class="item1">Fax: </td> <td> </td> <td valign="top"><input name="fax" type="text" class="item1f" /></td> <td class="item2">* please include country and area code</td> </tr> <tr> <td> </td> <td valign="top"> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Address:<span class="item2">*</span></span></td> <td> </td> <td> <textarea name="address" cols="30" rows="5" class="item1f"></textarea> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Country:</span></td> <td> </td> <td><SELECT NAME="country" size="1" class="item1f"> <option value="#" selected>Select your Country: </option> <option value="#">- - - - - - - - - - - - - - - - - - - - - - - -</option> <option value="Afghanistan">Afghanistan </option> </SELECT></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Resortl:</span></td> <td> </td> <td><select name="resort" class="item1f"> <option value="Banyan Tree Bahrain">Banyan Tree Bahrain</option> </select></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1"> Activities:</span></td> <td> </td> <td colspan="2"><table width="513" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="27" rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item1"></td> <td width="476"><span class="item3">• Night snorkeling on the house reef</span></td> </tr> <tr> <td class="item2"> Price: 5USD </td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item2"></td> <td><span class="item3">• Dawn snorkeling on the house reef</span> </td> </tr> <tr> <td><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item3"></td> <td class="item3"> • Coral planting in the lagoon </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item4"></td> <td class="item3">• Introduction to the biology, ecology and conservation of reef sharks and sea turtles: tour of research </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item5"></td> <td class="item3">• Reef Survey - using internationally accepted methods and criteria, a comparative survey of the house </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 24USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item6"></td> <td class="item3">• Tree Planting: planting of coconut palms on beach </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item7"></td> <td class="item3">• Bird nesting box construction </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item8"></td> <td class="item3">• Dolfin cruise with Marine biology guide </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 80USD </span></td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td class="item1">Persons:</td> <td> </td> <td valign="top"><input name="adult" type="text" class="item1f" size="4" maxlength="3" /> <span class="item1">Adult</span> <input name="child" type="text" class="item1f" size="4" maxlength="3" /> <span class="item1">Child</span></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td class="item1">Arrival Date: </td> <td> </td> <td><select name="day" class="item1f"> <option value="01">01</option> </select> <select name="month" class="item1f"> <option value="January 2007">January 2007</option> </select></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top" class="item1">Special Request: </td> <td> </td> <td><textarea name="special" cols="30" rows="5" class="item1f"></textarea></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> <input name="Submit" type="submit" class="item1f" value="Submit" /> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> </form> </td> </tr> <tr> <td> </td> </tr> <tr> <td> </td> </tr> </table></td> </tr> <tr> <td> </td> </tr> </table> [/code] and this is the code for my sendmail.php [code]<?php $salutation = $_POST['salutation']; $surname = $_POST['surname']; $firstname = $_POST['firstname']; $email = $_POST['email']; $phone = $_POST['phone']; $fax = $_POST['fax']; $address = $_POST['address']; $country = $_POST['country']; $resort = $_POST['resort']; $adult = $_POST['adult']; $child = $_POST['child']; $day = $_POST['day']; $month = $_POST['month']; $special = $_POST['special']; if((!$surname) || (!$firstname) || (!$email) || (!$phone) || (!$address)) { echo '<script language=javascript> alert("You did not submit the following required information!");</script>'; if(!$surname){ echo '<script language=javascript> alert("Surname is required");top.location = "eform.php";</script>'; } if(!$firstname){ echo '<script language=javascript> alert("Firstname is required");top.location = "eform.php";</script>'; } if(!email_is_valid($email)) { echo '<script language=javascript> alert("Please use a valid Email Address");top.location = "eform.php";</script>'; } if(!$phone){ echo '<script language=javascript> alert("Phone is required");top.location = "eform.php";</script>'; } if(!$address){ echo '<script language=javascript> alert("Address is required");top.location = "eform.php";</script>'; } exit(); //this will put your options in a list...so if 2, 4, and 5 are selected it will print "2, 4, 5" $checkbox = implode(",""<br>", $_POST['checkbox']); $Message = ""; $Message .= "An Earth Day Participate email from: $salutation $firstname $surname\n"; $Message .= "Telephone Number: $phone\n"; $Message .= "Fax Number: $fax\n"; $Message .= "Email Address: $email\n"; $ip = getenv("REMOTE_ADDR"); $Message .="IP address:".$ip."\n"; $Message .= "Address: $address , $country \n"; $Message .= "Resort Location: $resort\n"; $Message .= "Activity Selected: $checkbox\n"; $Message .= "Number of Adults: $adult\n"; $Message .= "Number of Kids: $child\n"; $Message .= "Arrival Date: $day $month\n"; $Message .= "\n\n"; $Message .= "Special Request: $special\n"; $Header = $email; $To = "reservation@banyantree.com"; $Subject = "Earth Day Participation"; // mail($To,$Subject,$Message,"From: $Header","-f $EmailAdd"); last parameter might not be supported mail($To,$Subject,$Message,"From: $Header"); echo '<script language=javascript> alert("Your Participation Request has been submitter. Thank you!");top.location = "eform.php";</script>'; function email_is_valid ($email) { if(eregi("^[0-9a-z_]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$", $email, $check)){ if ( getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) ) { return TRUE; } // THIS WILL CATCH DNSs THAT ARE NOT MX. if(checkdnsrr(substr(strstr($check[0], '@'), 1),"ANY")){ return TRUE; } } return FALSE; } ?> [/code] hoping for your help on this. thanks a lot!!!
-
this is the codes in my sendmail.php [code]<?php $salutation = $_POST['salutation']; $surname = $_POST['surname']; $firstname = $_POST['firstname']; $email = $_POST['email']; $phone = $_POST['phone']; $fax = $_POST['fax']; $address = $_POST['address']; $country = $_POST['country']; $resort = $_POST['resort']; $adult = $_POST['adult']; $child = $_POST['child']; $day = $_POST['day']; $month = $_POST['month']; $special = $_POST['special']; if((!$surname) || (!$firstname) || (!$email) || (!$phone) || (!$address)) { echo '<script language=javascript> alert("You did not submit the following required information!");</script>'; if(!$surname){ echo '<script language=javascript> alert("Surname is required");top.location = "eform.php";</script>'; } if(!$firstname){ echo '<script language=javascript> alert("Firstname is required");top.location = "eform.php";</script>'; } if(!email_is_valid($email)) { echo '<script language=javascript> alert("Please use a valid Email Address");top.location = "eform.php";</script>'; } if(!$phone){ echo '<script language=javascript> alert("Phone is required");top.location = "eform.php";</script>'; } if(!$address){ echo '<script language=javascript> alert("Address is required");top.location = "eform.php";</script>'; } exit(); //this will put your options in a list...so if 2, 4, and 5 are selected it will print "2, 4, 5" $checkbox = implode(",""<br>", $_POST['checkbox']); $Message = ""; $Message .= "An Earth Day Participate email from: $salutation $firstname $surname\n"; $Message .= "Telephone Number: $phone\n"; $Message .= "Fax Number: $fax\n"; $Message .= "Email Address: $email\n"; $ip = getenv("REMOTE_ADDR"); $Message .="IP address:".$ip."\n"; $Message .= "Address: $address , $country \n"; $Message .= "Resort Location: $resort\n"; $Message .= "Activity Selected: $checkbox\n"; $Message .= "Number of Adults: $adult\n"; $Message .= "Number of Kids: $child\n"; $Message .= "Arrival Date: $day $month\n"; $Message .= "\n\n"; $Message .= "Special Request: $special\n"; $Header = $email; $To = "reservation@banyantree.com"; $Subject = "Earth Day Participation"; // mail($To,$Subject,$Message,"From: $Header","-f $EmailAdd"); last parameter might not be supported mail($To,$Subject,$Message,"From: $Header"); echo '<script language=javascript> alert("Your Participation Request has been submitter. Thank you!");top.location = "eform.php";</script>'; function email_is_valid ($email) { if(eregi("^[0-9a-z_]([-_.]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,3}$", $email, $check)){ if ( getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) ) { return TRUE; } // THIS WILL CATCH DNSs THAT ARE NOT MX. if(checkdnsrr(substr(strstr($check[0], '@'), 1),"ANY")){ return TRUE; } } return FALSE; } ?> [/code]
-
i dont understand why i cant paste the entire codes here. please check my codes at http://www.banyantree.com/earthday/eform.phps http://www.banyantree.com/earthday/sendmail.phps thanks!
-
my sorry, the codes were not complete this is the codes for the eform.php [code]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>:: Banyan Tree Hotels & Resorts - Earth Day ::</title> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><table width="641" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="641"> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"><form id="form1" name="form1" method="post" action="sendmail.php"> <table width="617" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="4"> </td> <td width="95" valign="top"><span class="item1">Salutation:</span></td> <td width="10"> </td> <td width="332" valign="top"> <select name="salutation" class="item1f"> <option value="Mr." selected="selected">Mr.</option> <option value="Mr.">Ms.</option> <option value="Mr.">Mrs.</option> </select></td> <td width="182"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Surname:</span><span class="item2">*</span></td> <td> </td> <td valign="top"> <input name="surname" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Firstname:<span class="item2">*</span></span></td> <td> </td> <td valign="top"><input name="firstname" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">E-mail: </span><span class="item2">*</span> </td> <td> </td> <td valign="top"><input name="email" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Telephone: </span><span class="item2">*</span></td> <td> </td> <td valign="top"><input name="phone" type="text" class="item1f" /></td> <td class="item2">* please include country and area code </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top" class="item1">Fax: </td> <td> </td> <td valign="top"><input name="fax" type="text" class="item1f" /></td> <td class="item2">* please include country and area code</td> </tr> <tr> <td> </td> <td valign="top"> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Address:<span class="item2">*</span></span></td> <td> </td> <td> <textarea name="address" cols="30" rows="5" class="item1f"></textarea> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Country:</span></td> <td> </td> <td><SELECT NAME="country" size="1" class="item1f"> <option value="#" selected>Select your Country: </option> <option value="#">- - - - - - - - - - - - - - - - - - - - - - - -</option> <option value="Afghanistan">Afghanistan </option> <option value="Albania">Albania </option> <option value="Algeria">Algeria </option> <option value="American Samoa">American Samoa </option> <option value="Andorra">Andorra </option> <option value="Angola">Angola </option> <option value="Anguilla">Anguilla </option> <option value="Antarctica">Antarctica </option> <option value="Antigua and Barbuda">Antigua and Barbuda </option> <option value="Argentina">Argentina </option> <option value="Armenia">Armenia </option> <option value="Aruba">Aruba </option> <option value="Australia">Australia </option> <option value="Austria">Austria </option> <option value="Azerbaijan">Azerbaijan </option> <option value="Bahamas">Bahamas </option> <option value="Bahrain">Bahrain </option> <option value="Bangladesh">Bangladesh </option> <option value="Barbados">Barbados </option> <option value="Belarus">Belarus </option> <option value="Belgium">Belgium </option> <option value="Belize">Belize </option> <option value="Benin">Benin </option> <option value="Bermuda">Bermuda </option> <option value="Bhutan">Bhutan </option> <option value="Bolivia">Bolivia </option> <option value="Bosnia and Herzegowina">Bosnia and Herzegowina </option> <option value="Botswana">Botswana </option> <option value="Bouvet Island">Bouvet Island </option> <option value="Brazil">Brazil </option> <option value="British Indian Ocean Territory">British Indian Ocean Territory </option> <option value="Brunei Darussalam">Brunei Darussalam </option> <option value="Bulgaria">Bulgaria </option> <option value="Burkina Faso">Burkina Faso </option> <option value="Burundi">Burundi </option> <option value="Cambodia">Cambodia </option> <option value="Cameroon">Cameroon </option> <option value="Canada">Canada </option> <option value="Cape Verde">Cape Verde </option> <option value="Cayman Islands">Cayman Islands </option> <option value="Central African Republic">Central African Republic </option> <option value="Chad">Chad </option> <option value="Chile">Chile </option> <option value="China">China </option> <option value="Christmas Island">Christmas Island </option> <option value="Cocos (Keeling) Islands">Cocos (Keeling) Islands </option> <option value="Colombia">Colombia </option> <option value="Comoros">Comoros </option> <option value="Congo">Congo </option> <option value="Cook Islands">Cook Islands </option> <option value="Costa Rica">Costa Rica </option> <option value="Cote D'Ivoire">Cote D'Ivoire </option> <option value="Croatia">Croatia </option> <option value="Cuba">Cuba </option> <option value="Cyprus">Cyprus </option> <option value="Czech Republic">Czech Republic </option> <option value="Denmark">Denmark </option> <option value="Djibouti">Djibouti </option> <option value="Dominica">Dominica </option> <option value="Dominican Republic">Dominican Republic </option> <option value="East Timor">East Timor </option> <option value="Ecuador">Ecuador </option> <option value="Egypt">Egypt </option> <option value="El Salvador">El Salvador </option> <option value="Equatorial Guinea">Equatorial Guinea </option> <option value="Eritrea">Eritrea </option> <option value="Estonia">Estonia </option> <option value="Ethiopia">Ethiopia </option> <option value="Falkland Islands">Falkland Islands </option> <option value="Faroe Islands">Faroe Islands </option> <option value="Fiji">Fiji </option> <option value="Finland">Finland </option> <option value="France">France </option> <option value="France, Metropolitan">France, Metropolitan </option> <option value="French Guiana">French Guiana </option> <option value="French Polynesia">French Polynesia </option> <option value="French Southern Territories">French Southern Territories </option> <option value="Gabon">Gabon </option> <option value="Gambia">Gambia </option> <option value="Georgia">Georgia </option> <option value="Germany">Germany </option> <option value="Ghana">Ghana </option> <option value="Gibraltar">Gibraltar </option> <option value="Greece">Greece </option> <option value="Greenland">Greenland </option> <option value="Grenada">Grenada </option> <option value="Guadeloupe">Guadeloupe </option> <option value="Guam">Guam </option> <option value="Guatemala">Guatemala </option> <option value="Guinea">Guinea </option> <option value="Guinea-Bissau">Guinea-Bissau </option> <option value="Guyana">Guyana </option> <option value="Haiti">Haiti </option> <option value="Heard and Mc Donald Islands">Heard and Mc Donald Islands </option> <option value="Honduras">Honduras </option> <option value="Hong Kong">Hong Kong </option> <option value="Hungary">Hungary </option> <option value="Iceland">Iceland </option> <option value="India">India </option> <option value="Indonesia">Indonesia </option> <option value="Iran">Iran </option> <option value="Iraq">Iraq </option> <option value="Ireland">Ireland </option> <option value="Israel">Israel </option> <option value="Italy">Italy </option> <option value="Jamaica">Jamaica </option> <option value="Japan">Japan </option> <option value="Jordan">Jordan </option> <option value="Kazakhstan">Kazakhstan </option> <option value="Kenya">Kenya </option> <option value="Kiribati">Kiribati </option> <option value="North Korea">North Korea </option> <option value="Korea">Korea </option> <option value="Kuwait">Kuwait </option> <option value="Kyrgyzstan">Kyrgyzstan </option> <option value="Lao">Lao </option> <option value="Latvia">Latvia </option> <option value="Lebanon">Lebanon </option> <option value="Lesotho">Lesotho </option> <option value="Liberia">Liberia </option> <option value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya </option> <option value="Liechtenstein">Liechtenstein </option> <option value="Lithuania">Lithuania </option> <option value="Luxembourg">Luxembourg </option> <option value="Macau">Macau </option> <option value="Macedonia">Macedonia </option> <option value="Madagascar">Madagascar </option> <option value="Malawi">Malawi </option> <option value="Malaysia">Malaysia </option> <option value="Maldives">Maldives </option> <option value="Mali">Mali </option> <option value="Malta">Malta </option> <option value="Marshall Islands">Marshall Islands </option> <option value="Martinique">Martinique </option> <option value="Mauritania">Mauritania </option> <option value="Mauritius">Mauritius </option> <option value="Mayotte">Mayotte </option> <option value="Mexico">Mexico </option> <option value="Micronesia">Micronesia </option> <option value="Moldova">Moldova </option> <option value="Monaco">Monaco </option> <option value="Mongolia">Mongolia </option> <option value="Montserrat">Montserrat </option> <option value="Morocco">Morocco </option> <option value="Mozambique">Mozambique </option> <option value="Myanmar">Myanmar </option> <option value="Namibia">Namibia </option> <option value="Nauru">Nauru </option> <option value="Nepal">Nepal </option> <option value="Netherlands">Netherlands </option> <option value="Netherlands Antilles">Netherlands Antilles </option> <option value="New Caledonia">New Caledonia </option> <option value="New Zealand">New Zealand </option> <option value="Nicaragua">Nicaragua </option> <option value="Niger">Niger </option> <option value="Nigeria">Nigeria </option> <option value="Niue">Niue </option> <option value="Norfolk Island">Norfolk Island </option> <option value="Northern Mariana Islands">Northern Mariana Islands </option> <option value="Norway">Norway </option> <option value="Oman">Oman </option> <option value="Pakistan">Pakistan </option> <option value="Palau">Palau </option> <option value="Panama">Panama </option> <option value="Papua New Guinea">Papua New Guinea </option> <option value="Paraguay">Paraguay </option> <option value="Peru">Peru </option> <option value="Philippines">Philippines </option> <option value="Pitcairn">Pitcairn </option> <option value="Poland">Poland </option> <option value="Portugal">Portugal </option> <option value="Puerto Rico">Puerto Rico </option> <option value="Qatar">Qatar </option> <option value="Reunion">Reunion </option> <option value="Romania">Romania </option> <option value="Russian Federation">Russian Federation </option> <option value="Rwanda">Rwanda </option> <option value="Saint Helena">Saint Helena </option> <option value="Saint Kitts and Nevis">Saint Kitts and Nevis </option> <option value="Saint Lucia">Saint Lucia </option> <option value="Saint Pierre and Miquelon">Saint Pierre and Miquelon </option> <option value="Saint Vincent">Saint Vincent </option> <option value="Samoa">Samoa </option> <option value="San Marino">San Marino </option> <option value="Sao Tome and Principe">Sao Tome and Principe </option> <option value="Saudi Arabia">Saudi Arabia </option> <option value="Senegal">Senegal </option> <option value="Seychelles">Seychelles </option> <option value="Sierra Leone">Sierra Leone </option> <option value="Singapore">Singapore </option> <option value="Slovakia (Slovak Republic)">Slovakia (Slovak Republic)</option> <option value="Slovenia">Slovenia </option> <option value="Solomon Islands">Solomon Islands </option> <option value="Somalia">Somalia </option> <option value="South Africa">South Africa </option> <option value="South Georgia">South Georgia </option> <option value="Spain">Spain </option> <option value="Sri Lanka">Sri Lanka </option> <option value="Sudan">Sudan </option> <option value="Suriname">Suriname </option> <option value="Svalbard & Jan Mayen Islands">Svalbard & Jan Mayen Islands </option> <option value="Swaziland">Swaziland </option> <option value="Sweden">Sweden </option> <option value="Switzerland">Switzerland </option> <option value="Syrian Arab Republic">Syrian Arab Republic </option> <option value="Taiwan">Taiwan </option> <option value="Tajikistan">Tajikistan </option> <option value="Tanzania">Tanzania </option> <option value="Thailand">Thailand </option> <option value="Togo">Togo </option> <option value="Tokelau">Tokelau </option> <option value="Tonga">Tonga </option> <option value="Trinidad and Tobago">Trinidad and Tobago </option> <option value="Tunisia">Tunisia </option> <option value="Turkey">Turkey </option> <option value="Turkmenistan">Turkmenistan </option> <option value="Turks and Caicos Islands">Turks and Caicos Islands </option> <option value="Tuvalu">Tuvalu </option> <option value="Uganda">Uganda </option> <option value="Ukraine">Ukraine </option> <option value="United Arab Emirates">United Arab Emirates </option> <option value="United Kingdom">United Kingdom </option> <option value="US Minor Outlying Islands">US Minor Outlying Islands </option> <option value="United States of America">United States of America </option> <option value="Uruguay">Uruguay </option> <option value="Uzbekistan">Uzbekistan </option> <option value="Vanuatu">Vanuatu </option> <option value="Vatican City State">Vatican City State </option> <option value="Venezuela">Venezuela </option> <option value="Vietnam">Vietnam </option> <option value="Virgin Islands (British)">Virgin Islands (British) </option> <option value="Virgin Islands (U.S.)">Virgin Islands (U.S.) </option> <option value="Wallis and Futuna Islands">Wallis and Futuna Islands </option> <option value="Western Sahara">Western Sahara </option> <option value="Yemen">Yemen </option> <option value="Yugoslavia">Yugoslavia </option> <option value="Zaire">Zaire </option> <option value="Zambia">Zambia </option> <option value="Zimbabwe">Zimbabwe </option> </SELECT></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Resortl:</span></td> <td> </td> <td><select name="resort" class="item1f"> <option value="Banyan Tree Bahrain">Banyan Tree Bahrain</option> <option value="Banyan Tree Bangkok">Banyan Bangkok</option> <option value="Banyan Tree Bintan">Banyan Tree Bintan</option> <option value="Banyan Tree Lijiang">Banyan Tree Lijiang</option> <option value="Banyan Tree Maldives">Banyan Tree Maldives</option> <option value="Banyan Tree Phuket">Banyan Tree Phuket</option> <option value="Banyan Tree Ringha">Banyan Tree Ringha</option> <option value="Banyan Tree Seychelles">Banyan Tree Seychelles</option> </select></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1"> Activities:</span></td> <td> </td> <td colspan="2"><table width="513" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="27" rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item1"></td> <td width="476"><span class="item3">• Night snorkeling on the house reef</span></td> </tr> <tr> <td class="item2"> Price: 5USD </td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item2"></td> <td><span class="item3">• Dawn snorkeling on the house reef</span> </td> </tr> <tr> <td><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item3"></td> <td class="item3"> • Coral planting in the lagoon </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item4"></td> <td class="item3">• Introduction to the biology, ecology and conservation of reef sharks and sea turtles: tour of research </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item5"></td> <td class="item3">• Reef Survey - using internationally accepted methods and criteria, a comparative survey of the house </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 24USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item6"></td> <td class="item3">• Tree Planting: planting of coconut palms on beach </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item7"></td> <td class="item3">• Bird nesting box construction </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item8"></td> <td class="item3">• Dolfin cruise with Marine biology guide </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 80USD </span></td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td class="item1">Persons:</td> <td> </td> <td valign="top"><input name="adult" type="text" class="item1f" size="4" maxlength="3" /> <span class="item1">Adult</span> <input name="child" type="text" class="item1f" size="4" maxlength="3" /> <span class="item1">Child</span></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td class="item1">Arrival Date: </td> <td> </td> <td><select name="day" class="item1f"> <option value="01">01</option> <option value="02">02</option> <option value="02">03</option> <option value="02">04</option> <option value="02">05</option> <option value="02">06</option> <option value="02">07</option> <option value="02">08</option> <option value="02">09</option> <option value="02">10</option> <option value="02">11</option> <option value="02">12</option> <option value="02">13</option> <option value="02">14</option> <option value="02">15</option> <option value="02">16</option> <option value="02">17</option> <option value="02">18</option> <option value="02">19</option> <option value="02">20</option> <option value="02">21</option> <option value="02">22</option> <option value="02">23</option> <option value="02">24</option> <option value="02">25</option> <option value="02">26</option> <option value="02">27</option> <option value="02">28</option> <option value="02">29</option> <option value="02">30</option> <option value="02">31</option> </select> <select name="month" class="item1f"> <option value="January 2007">January 2007</option> <option value="February 2007">February 2007</option> <option value="March 2007">March 2007</option> <option value="April 2007">April 2007</option> <option value="May 2007">May 2007</option> <option value="June 2007">June 2007</option> <option value="July 2007">July 2007</option> <option value="August 2007">August 2007</option> <option value="September 2007">September 2007</option> <option value="October 2007">October 2007</option> <option value="November 2007">November 2007</option> <option value="December 2007">December 2007</option> </select></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top" class="item1">Special Request: </td> <td> </td> <td><textarea name="special" cols="30" rows="5" class="item1f"></textarea></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> <input name="Submit" type="submit" class="item1f" value="Submit" /> </td> <td> </td>  
-
this is just the 2 pages. all i need is have the form submitted to the email address in the sendmail.php if you have a better sendmail script. i will gladly appreciate it. thanks a lot!
-
guys, i need help on my form. i have 2 pages, 1 is the eform.php and the 2nd one is the sendmail.php you can access the page at http://www.banyantree.com/earthday/eform.php i tried using the form but i think the sendmail.php is not working. below is my codes for the eform.php [code]<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>:: Banyan Tree Hotels & Resorts - Earth Day ::</title> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td><table width="641" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="641"> </td> </tr> <tr> <td> </td> </tr> <tr> <td align="center"><form id="form1" name="form1" method="post" action="sendmail.php"> <table width="617" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="4"> </td> <td width="95" valign="top"><span class="item1">Salutation:</span></td> <td width="10"> </td> <td width="332" valign="top"> <select name="salutation" class="item1f"> <option value="Mr." selected="selected">Mr.</option> <option value="Mr.">Ms.</option> <option value="Mr.">Mrs.</option> </select></td> <td width="182"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Surname:</span><span class="item2">*</span></td> <td> </td> <td valign="top"> <input name="surname" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Firstname:<span class="item2">*</span></span></td> <td> </td> <td valign="top"><input name="firstname" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">E-mail: </span><span class="item2">*</span> </td> <td> </td> <td valign="top"><input name="email" type="text" class="item1f" /></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Telephone: </span><span class="item2">*</span></td> <td> </td> <td valign="top"><input name="phone" type="text" class="item1f" /></td> <td class="item2">* please include country and area code </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top" class="item1">Fax: </td> <td> </td> <td valign="top"><input name="fax" type="text" class="item1f" /></td> <td class="item2">* please include country and area code</td> </tr> <tr> <td> </td> <td valign="top"> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Address:<span class="item2">*</span></span></td> <td> </td> <td> <textarea name="address" cols="30" rows="5" class="item1f"></textarea> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Country:</span></td> <td> </td> <td><SELECT NAME="country" size="1" class="item1f"> <option value="#" selected>Select your Country: </option> <option value="#">- - - - - - - - - - - - - - - - - - - - - - - -</option> <option value="Afghanistan">Afghanistan </option> <option value="Albania">Albania </option> <option value="Algeria">Algeria </option> <option value="American Samoa">American Samoa </option> <option value="Andorra">Andorra </option> <option value="Angola">Angola </option> <option value="Anguilla">Anguilla </option> <option value="Antarctica">Antarctica </option> <option value="Antigua and Barbuda">Antigua and Barbuda </option> <option value="Argentina">Argentina </option> <option value="Armenia">Armenia </option> <option value="Aruba">Aruba </option> <option value="Australia">Australia </option> <option value="Austria">Austria </option> <option value="Azerbaijan">Azerbaijan </option> <option value="Bahamas">Bahamas </option> <option value="Bahrain">Bahrain </option> <option value="Bangladesh">Bangladesh </option> <option value="Barbados">Barbados </option> <option value="Belarus">Belarus </option> <option value="Belgium">Belgium </option> <option value="Belize">Belize </option> <option value="Benin">Benin </option> <option value="Bermuda">Bermuda </option> <option value="Bhutan">Bhutan </option> <option value="Bolivia">Bolivia </option> <option value="Bosnia and Herzegowina">Bosnia and Herzegowina </option> <option value="Botswana">Botswana </option> <option value="Bouvet Island">Bouvet Island </option> <option value="Brazil">Brazil </option> <option value="British Indian Ocean Territory">British Indian Ocean Territory </option> <option value="Brunei Darussalam">Brunei Darussalam </option> <option value="Bulgaria">Bulgaria </option> <option value="Burkina Faso">Burkina Faso </option> <option value="Burundi">Burundi </option> <option value="Cambodia">Cambodia </option> <option value="Cameroon">Cameroon </option> <option value="Canada">Canada </option> <option value="Cape Verde">Cape Verde </option> <option value="Cayman Islands">Cayman Islands </option> <option value="Central African Republic">Central African Republic </option> <option value="Chad">Chad </option> <option value="Chile">Chile </option> <option value="China">China </option> <option value="Christmas Island">Christmas Island </option> <option value="Cocos (Keeling) Islands">Cocos (Keeling) Islands </option> <option value="Colombia">Colombia </option> <option value="Comoros">Comoros </option> <option value="Congo">Congo </option> <option value="Cook Islands">Cook Islands </option> <option value="Costa Rica">Costa Rica </option> <option value="Cote D'Ivoire">Cote D'Ivoire </option> <option value="Croatia">Croatia </option> <option value="Cuba">Cuba </option> <option value="Cyprus">Cyprus </option> <option value="Czech Republic">Czech Republic </option> <option value="Denmark">Denmark </option> <option value="Djibouti">Djibouti </option> <option value="Dominica">Dominica </option> <option value="Dominican Republic">Dominican Republic </option> <option value="East Timor">East Timor </option> <option value="Ecuador">Ecuador </option> <option value="Egypt">Egypt </option> <option value="El Salvador">El Salvador </option> <option value="Equatorial Guinea">Equatorial Guinea </option> <option value="Eritrea">Eritrea </option> <option value="Estonia">Estonia </option> <option value="Ethiopia">Ethiopia </option> <option value="Falkland Islands">Falkland Islands </option> <option value="Faroe Islands">Faroe Islands </option> <option value="Fiji">Fiji </option> <option value="Finland">Finland </option> <option value="France">France </option> <option value="France, Metropolitan">France, Metropolitan </option> <option value="French Guiana">French Guiana </option> <option value="French Polynesia">French Polynesia </option> <option value="French Southern Territories">French Southern Territories </option> <option value="Gabon">Gabon </option> <option value="Gambia">Gambia </option> <option value="Georgia">Georgia </option> <option value="Germany">Germany </option> <option value="Ghana">Ghana </option> <option value="Gibraltar">Gibraltar </option> <option value="Greece">Greece </option> <option value="Greenland">Greenland </option> <option value="Grenada">Grenada </option> <option value="Guadeloupe">Guadeloupe </option> <option value="Guam">Guam </option> <option value="Guatemala">Guatemala </option> <option value="Guinea">Guinea </option> <option value="Guinea-Bissau">Guinea-Bissau </option> <option value="Guyana">Guyana </option> <option value="Haiti">Haiti </option> <option value="Heard and Mc Donald Islands">Heard and Mc Donald Islands </option> <option value="Honduras">Honduras </option> <option value="Hong Kong">Hong Kong </option> <option value="Hungary">Hungary </option> <option value="Iceland">Iceland </option> <option value="India">India </option> <option value="Indonesia">Indonesia </option> <option value="Iran">Iran </option> <option value="Iraq">Iraq </option> <option value="Ireland">Ireland </option> <option value="Israel">Israel </option> <option value="Italy">Italy </option> <option value="Jamaica">Jamaica </option> <option value="Japan">Japan </option> <option value="Jordan">Jordan </option> <option value="Kazakhstan">Kazakhstan </option> <option value="Kenya">Kenya </option> <option value="Kiribati">Kiribati </option> <option value="North Korea">North Korea </option> <option value="Korea">Korea </option> <option value="Kuwait">Kuwait </option> <option value="Kyrgyzstan">Kyrgyzstan </option> <option value="Lao">Lao </option> <option value="Latvia">Latvia </option> <option value="Lebanon">Lebanon </option> <option value="Lesotho">Lesotho </option> <option value="Liberia">Liberia </option> <option value="Libyan Arab Jamahiriya">Libyan Arab Jamahiriya </option> <option value="Liechtenstein">Liechtenstein </option> <option value="Lithuania">Lithuania </option> <option value="Luxembourg">Luxembourg </option> <option value="Macau">Macau </option> <option value="Macedonia">Macedonia </option> <option value="Madagascar">Madagascar </option> <option value="Malawi">Malawi </option> <option value="Malaysia">Malaysia </option> <option value="Maldives">Maldives </option> <option value="Mali">Mali </option> <option value="Malta">Malta </option> <option value="Marshall Islands">Marshall Islands </option> <option value="Martinique">Martinique </option> <option value="Mauritania">Mauritania </option> <option value="Mauritius">Mauritius </option> <option value="Mayotte">Mayotte </option> <option value="Mexico">Mexico </option> <option value="Micronesia">Micronesia </option> <option value="Moldova">Moldova </option> <option value="Monaco">Monaco </option> <option value="Mongolia">Mongolia </option> <option value="Montserrat">Montserrat </option> <option value="Morocco">Morocco </option> <option value="Mozambique">Mozambique </option> <option value="Myanmar">Myanmar </option> <option value="Namibia">Namibia </option> <option value="Nauru">Nauru </option> <option value="Nepal">Nepal </option> <option value="Netherlands">Netherlands </option> <option value="Netherlands Antilles">Netherlands Antilles </option> <option value="New Caledonia">New Caledonia </option> <option value="New Zealand">New Zealand </option> <option value="Nicaragua">Nicaragua </option> <option value="Niger">Niger </option> <option value="Nigeria">Nigeria </option> <option value="Niue">Niue </option> <option value="Norfolk Island">Norfolk Island </option> <option value="Northern Mariana Islands">Northern Mariana Islands </option> <option value="Norway">Norway </option> <option value="Oman">Oman </option> <option value="Pakistan">Pakistan </option> <option value="Palau">Palau </option> <option value="Panama">Panama </option> <option value="Papua New Guinea">Papua New Guinea </option> <option value="Paraguay">Paraguay </option> <option value="Peru">Peru </option> <option value="Philippines">Philippines </option> <option value="Pitcairn">Pitcairn </option> <option value="Poland">Poland </option> <option value="Portugal">Portugal </option> <option value="Puerto Rico">Puerto Rico </option> <option value="Qatar">Qatar </option> <option value="Reunion">Reunion </option> <option value="Romania">Romania </option> <option value="Russian Federation">Russian Federation </option> <option value="Rwanda">Rwanda </option> <option value="Saint Helena">Saint Helena </option> <option value="Saint Kitts and Nevis">Saint Kitts and Nevis </option> <option value="Saint Lucia">Saint Lucia </option> <option value="Saint Pierre and Miquelon">Saint Pierre and Miquelon </option> <option value="Saint Vincent">Saint Vincent </option> <option value="Samoa">Samoa </option> <option value="San Marino">San Marino </option> <option value="Sao Tome and Principe">Sao Tome and Principe </option> <option value="Saudi Arabia">Saudi Arabia </option> <option value="Senegal">Senegal </option> <option value="Seychelles">Seychelles </option> <option value="Sierra Leone">Sierra Leone </option> <option value="Singapore">Singapore </option> <option value="Slovakia (Slovak Republic)">Slovakia (Slovak Republic)</option> <option value="Slovenia">Slovenia </option> <option value="Solomon Islands">Solomon Islands </option> <option value="Somalia">Somalia </option> <option value="South Africa">South Africa </option> <option value="South Georgia">South Georgia </option> <option value="Spain">Spain </option> <option value="Sri Lanka">Sri Lanka </option> <option value="Sudan">Sudan </option> <option value="Suriname">Suriname </option> <option value="Svalbard & Jan Mayen Islands">Svalbard & Jan Mayen Islands </option> <option value="Swaziland">Swaziland </option> <option value="Sweden">Sweden </option> <option value="Switzerland">Switzerland </option> <option value="Syrian Arab Republic">Syrian Arab Republic </option> <option value="Taiwan">Taiwan </option> <option value="Tajikistan">Tajikistan </option> <option value="Tanzania">Tanzania </option> <option value="Thailand">Thailand </option> <option value="Togo">Togo </option> <option value="Tokelau">Tokelau </option> <option value="Tonga">Tonga </option> <option value="Trinidad and Tobago">Trinidad and Tobago </option> <option value="Tunisia">Tunisia </option> <option value="Turkey">Turkey </option> <option value="Turkmenistan">Turkmenistan </option> <option value="Turks and Caicos Islands">Turks and Caicos Islands </option> <option value="Tuvalu">Tuvalu </option> <option value="Uganda">Uganda </option> <option value="Ukraine">Ukraine </option> <option value="United Arab Emirates">United Arab Emirates </option> <option value="United Kingdom">United Kingdom </option> <option value="US Minor Outlying Islands">US Minor Outlying Islands </option> <option value="United States of America">United States of America </option> <option value="Uruguay">Uruguay </option> <option value="Uzbekistan">Uzbekistan </option> <option value="Vanuatu">Vanuatu </option> <option value="Vatican City State">Vatican City State </option> <option value="Venezuela">Venezuela </option> <option value="Vietnam">Vietnam </option> <option value="Virgin Islands (British)">Virgin Islands (British) </option> <option value="Virgin Islands (U.S.)">Virgin Islands (U.S.) </option> <option value="Wallis and Futuna Islands">Wallis and Futuna Islands </option> <option value="Western Sahara">Western Sahara </option> <option value="Yemen">Yemen </option> <option value="Yugoslavia">Yugoslavia </option> <option value="Zaire">Zaire </option> <option value="Zambia">Zambia </option> <option value="Zimbabwe">Zimbabwe </option> </SELECT></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1">Resortl:</span></td> <td> </td> <td><select name="resort" class="item1f"> <option value="Banyan Tree Bahrain">Banyan Tree Bahrain</option> <option value="Banyan Tree Bangkok">Banyan Bangkok</option> <option value="Banyan Tree Bintan">Banyan Tree Bintan</option> <option value="Banyan Tree Lijiang">Banyan Tree Lijiang</option> <option value="Banyan Tree Maldives">Banyan Tree Maldives</option> <option value="Banyan Tree Phuket">Banyan Tree Phuket</option> <option value="Banyan Tree Ringha">Banyan Tree Ringha</option> <option value="Banyan Tree Seychelles">Banyan Tree Seychelles</option> </select></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top"><span class="item1"> Activities:</span></td> <td> </td> <td colspan="2"><table width="513" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="27" rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item1"></td> <td width="476"><span class="item3">• Night snorkeling on the house reef</span></td> </tr> <tr> <td class="item2"> Price: 5USD </td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item2"></td> <td><span class="item3">• Dawn snorkeling on the house reef</span> </td> </tr> <tr> <td><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item3"></td> <td class="item3"> • Coral planting in the lagoon </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item4"></td> <td class="item3">• Introduction to the biology, ecology and conservation of reef sharks and sea turtles: tour of research </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item5"></td> <td class="item3">• Reef Survey - using internationally accepted methods and criteria, a comparative survey of the house </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 24USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item6"></td> <td class="item3">• Tree Planting: planting of coconut palms on beach </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item7"></td> <td class="item3">• Bird nesting box construction </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 5USD </span></td> </tr> <tr> <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item8"></td> <td class="item3">• Dolfin cruise with Marine biology guide </td> </tr> <tr> <td class="item3"><span class="item2"> Price: 80USD </span></td> </tr> </table></td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td class="item1">Persons:</td> <td> </td> <td valign="top"><input name="adult" type="text" class="item1f" size="4" maxlength="3" /> <span class="item1">Adult</span> <input name="child" type="text" class="item1f" size="4" maxlength="3" /> <span class="item1">Child</span></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td class="item1">Arrival Date: </td> <td> </td> <td><select name="day" class="item1f"> <option value="01">01</option> <option value="02">02</option> <option value="02">03</option> <option value="02">04</option> <option value="02">05</option> <option value="02">06</option> <option value="02">07</option> <option value="02">08</option> <option value="02">09</option> <option value="02">10</option> <option value="02">11</option> <option value="02">12</option> <option value="02">13</option> <option value="02">14</option> <option value="02">15</option> <option value="02">16</option> <option value="02">17</option> <option value="02">18</option> <option value="02">19</option> <option value="02">20</option> <option value="02">21</option> <option value="02">22</option> <option value="02">23</option> <option value="02">24</option> <option value="02">25</option> <option value="02">26</option> <option value="02">27</option> <option value="02">28</option> <option value="02">29</option> <option value="02">30</option> <option value="02">31</option> </select> <select name="month" class="item1f"> <option value="January 2007">January 2007</option> <option value="February 2007">February 2007</option> <option value="March 2007">March 2007</option> <option value="April 2007">April 2007</option> <option value="May 2007">May 2007</option> <option value="June 2007">June 2007</option> <option value="July 2007">July 2007</option> <option value="August 2007">August 2007</option> <option value="September 2007">September 2007</option> <option value="October 2007">October 2007</option> <option value="November 2007">November 2007</option> <option value="December 2007">December 2007</option> </select></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td valign="top" class="item1">Special Request: </td> <td> </td> <td><textarea name="special" cols="30" rows="5" class="item1f"></textarea></td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> <input name="Submit" type="submit" class="it
-
thanks! i'll test this now.
-
i almost forgot. this is just for the form right? how about on the submit page? what are the codes that i need to place there? example, if its a jpeg file and it needs to go to a specific folder in the server and have it renamed automatically. for instance the filename is picture1.jpg and once it was submitted i want it to be renamed to 001.jpg how should i be able to do that in the submitpage? thanks!
-
guys, i have an admin page and may need to have the attach file field and button what is the code for this? thanks!
-
guys, i need help. before this page of my site is working. in fact, i even ask for help here before and the problem was fixed. now its having a different error. and i just found it out when one of the viewing emailed me. the problem is when i click on the order form, its not submitting the correct product_id i have to page painting.php and porder.php this is the codes for my painting.php [code]<form method='GET' action='porder.php'> <? include '../db_connect.php'; $uSql = "SELECT product_image, product_name, product_type, product_desc, product_price, product_id FROM products WHERE product_type = 'painting' ORDER by product_id DESC "; $uResult = mysql_query($uSql, $connection) or die(mysql_error()); if(!$uResult){ echo 'no data found'; } else{ while($uRow = mysql_fetch_row($uResult)){ ?> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="7"><img src="../images/spacer.gif" width="10" height="10"></td> </tr> <tr> <td width="14" rowspan="3"><img src="../images/spacer.gif" width="10" height="10"></td> <td width="84" rowspan="3" align="center" valign="top"><a href="../images/products/<?= $uRow[0]?>.jpg" target="_blank" class="fotgal"><img src="../images/products/thumbs/<?= $uRow[0]?>.gif" width="70" height="69" border="0"></a></td> <td width="10" rowspan="3"><img src="../images/spacer.gif" width="10" height="10"></td> <td width="243"><span class="bodytext3"> <?= $uRow[1]?> </span></td> <td colspan="2" valign="top"><span class="bodytext">| <?= $uRow[2]?> </span></td> <td width="10" rowspan="3"><img src="../images/spacer.gif" width="10" height="10"></td> </tr> <tr> <td colspan="3"><span class="bodytext6"> <?= $uRow[3]?> </span></td> </tr> <tr> <td><span class="bodytext3"> <?= $uRow[4]?> </span></td> <td width="42"> </td> <td width="97" align="center"> <input name="submit" type="submit" value="Order Now"> <input type=hidden value=<? echo $uRow[5];?> name=product_id></td> </tr> <tr> <td colspan="7"><img src="../images/spacer.gif" width="10" height="10"></td> </tr> <tr> <td colspan="3"> </td> <td colspan="3"><span class="bodytext">--------------------------------------------------------------------------------------------</span></td> <td> </td> </tr> </table> <? } } ?></form>[/code] and this is the codes for my porder.php [code]<? include '../db_connect.php'; $uSql = "SELECT product_image, product_name, product_desc, product_type, product_price FROM products WHERE product_id= '" . $_GET['product_id'] . "'"; $uResult = mysql_query($uSql, $connection) or die("Error: ". mysql_error(). " with query ". $uSql); $uRow = mysql_fetch_array($uResult); ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <link href="../CSS.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; background-color: #E7E7DD; } --> </style></head> <body> <table width="500" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="18" align="center"> <table width="408" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="408" align="center"><BR> <BR> <BR></td> </tr> <tr> <td align="center"> <table width="36" border="1" cellpadding="0" cellspacing="0" bordercolor="#666666"> <tr> <td width="32" align="center"><img src="../images/products/<?= $uRow[0]?>.jpg"></td> </tr> </table> </td> </tr> <tr> <td><img src="../images/spacer.gif" width="4" height="4"></td> </tr> <tr> <td bg bgcolor="#E14B19"><img src="../images/spacer.gif" width="4" height="1"></td> </tr> <tr> <td><img src="../images/spacer.gif" width="4" height="14"></td> </tr> <tr> <td align="center"><span class="bodytext3">YOU HAVE ORDERED </span></td> </tr> <tr> <td align="center"><span class="bodytext"><? echo $uRow[1]; ?></span></td> </tr> <tr> <td align="center"><span class="bodytext"><? echo $uRow[2]; ?></span></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td><img src="../images/spacer.gif" width="4" height="4"></td> </tr> <tr> <td bg bgcolor="#E14B19"><img src="../images/spacer.gif" width="4" height="1"></td> </tr> <tr> <td><img src="../images/spacer.gif" width="4" height="4"></td> </tr> <tr> <td> </td> </tr> <tr> <td class="bodytext3"><form method='post' action='pordermail.php'><table width="407" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3" class="bodytext3">Product Order Information </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td width="90" class="bodytext3">Name:</td> <td width="6"><img src="../images/spacer.gif" width="6" height="4"></td> <td width="311"><input name=name class="newsletter" size=30 maxlength=50></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td class="bodytext3">Contact No: </td> <td> </td> <td><input name=contact class="newsletter" size=30 maxlength=50></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td class="bodytext3">Email Address: </td> <td> </td> <td><input name=email class="newsletter" size=30 maxlength=50></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td class="bodytext3">Item Selected: </td> <td> </td> <td><input name=product class="newsletter" size=50 maxlength=50 value="1- <? echo $uRow[1]; ?> <? echo $uRow[3]; ?>"></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td> </td> <td> </td> <td class="bodytext3">Other Details <span class="bodytext2">(If you have other concerns, place it here)</span> </td> </tr> <tr> <td> </td> <td> </td> <td><textarea name="details" cols="50" rows="6" wrap="virtual" class="newsletter2"></textarea></td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td> </td> <td> </td> <td><input type=submit value=submit name=submit> <input type=hidden value=http://www. name=redirect> <input type=hidden value=Sinagtala_Product_Order name=subject> <input type=hidden value=martin@sinagtala.net name=recipient> <input type=hidden value=admin@sinagtala.net name=cc> <input type=hidden value=raymund@pixeltrace.com name=bcc></td> </tr> <tr> <td colspan="3"> </td> </tr> </table> </form></td> </tr> </table> </td> </tr> </table> </body> </html>[/code] i tried doing an echo on porder.php but its not displaying the product_id hope you could help me with this. thanks!
-
guys, i need help. i dont know if this is the proper page for me to ask this help but i need help on how to install phpmyadmin wherein the first option is just thru ftp access. how should i do this? thanks!
-
guys, i need help on installing php and setting up iis on windows xp platform i already installed php-5.2.0-win32-installer.msi and setup iis to the folder were i wanted i am using dreamweaver 8 i dont know if i've setup my dreamweaver properly to the manage sites but when i tried viewing the php pages that i have created its telling me "page cannot be found" how should i fix this? thanks!
-
guys, does any of you know how to create this kind of booking form? http://tigerairways.com/home/ hope you could help me with this thanks!
-
need help on posting displaying items on database
pixeltrace replied to pixeltrace's topic in PHP Coding Help
Hi,, I dont get it, where will i place the closing code and what is the code? thanks and hoping you could help me with this -
Hi, I dont know how to start the conditions and where. Hope you could help me with this. this is my code http://www.sinagtala.net/emailadded.phps Thanks!
-
need help on posting displaying items on database
pixeltrace replied to pixeltrace's topic in PHP Coding Help
Hi, i already did that but its quite messy and my client didn't like that way. any better ideas for that? thanks! -
this is the code for my emailadded.php http://www.sinagtala.net/emailadded.phps
-
great! it work! but i have one more problem. i tried adding just two (2) emails. but codes run and it work but the problem is it also adds the empty fields for query 3, 4, and 5 to the database. so when i view my table, there are new items which are empty. how should i fix this one? thanks!
-
guys, i need help, anyone who has a code for emailform with file attachment? hope you could help me with this. thanks!
-
guys, i also need help on this. i have a page which displays the email list and has a "update" and "delete" text button on the right side. the delete button is already working fine but for my update button, i am getting an error: Parse error: syntax error, unexpected $end in /home/sinag/public_html/admean/emailupdate.php on line 183 whenever i am clicking the button this is the code for my update button [code]<a href="emailupdate.php?eid=<? echo $uRow[0]; ?>" onclick="return confirmupdate()" class="pixeltracefooter">Update Item</a> [/code] and this is the code for my emailupdate.php http://www.sinagtala.net/emailupdate.phps thanks!
-
i did the query for the other entries but i am getting an error on line 107 Parse error: syntax error, unexpected $end in /home/sinag/public_html/admean/emailadded.php on line 107 below is the code that i did http://www.sinagtala.net/emailadded.phps
-
guys, i need help, i have a form that needs to add 1 to 5 email addresses with its name, company, catergory, etc my problem is with the emailadded.php because its getting an error on my insert query part. here is the codes for my emailadd.php page http://www.sinagtala.net/emailadd.phps and here is the code for my emailadded.php http://www.sinagtala.net/emailadded.phps what could be the problem on my codes? thanks!
-
yes. the codes of the 2 page is here http://www.sinagtala.net/emailview.phps and http://www.sinagtala.net/emaildelete.phps