Jump to content

Recommended Posts

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 &amp; 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>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="641" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="641">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</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">&nbsp;</td>
              <td width="95" valign="top"><span  class="item1">Salutation:</span></td>
              <td width="10">&nbsp;</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">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Surname:</span><span class="item2">*</span></td>
              <td>&nbsp;</td>
              <td valign="top">
                <input name="surname" type="text" class="item1f" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Firstname:<span class="item2">*</span></span></td>
              <td>&nbsp;</td>
              <td valign="top"><input name="firstname" type="text" class="item1f" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span class="item1">E-mail: </span><span class="item2">*</span> </td>
              <td>&nbsp;</td>
              <td valign="top"><input name="email" type="text" class="item1f" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Telephone: </span><span class="item2">*</span></td>
              <td>&nbsp;</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>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top" class="item1">Fax: </td>
              <td>&nbsp;</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>&nbsp;</td>
              <td valign="top">&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Address:<span class="item2">*</span></span></td>
              <td>&nbsp;</td>
              <td>
                <textarea name="address" cols="30" rows="5" class="item1f"></textarea>            </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span class="item1">Country:</span></td>
              <td>&nbsp;</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 &amp; Jan Mayen Islands">Svalbard &amp; 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>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span class="item1">Resortl:</span></td>
              <td>&nbsp;</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>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1"> Activities:</span></td>
              <td>&nbsp;</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">&#8226; Night snorkeling on the house reef</span></td>
                </tr>
                <tr>
                  <td class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item2"></td>
                  <td><span class="item3">&#8226; Dawn snorkeling on the house reef</span> </td>
                </tr>
                <tr>
                  <td><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item3"></td>
                  <td class="item3"> &#8226; Coral planting in the lagoon </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item4"></td>
                  <td class="item3">&#8226; 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">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item5"></td>
                  <td class="item3">&#8226; Reef Survey - using internationally accepted methods and criteria, a comparative survey of the house </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 24USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item6"></td>
                  <td class="item3">&#8226; Tree Planting: planting of coconut palms on beach </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item7"></td>
                  <td class="item3">&#8226; Bird nesting box construction </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item8"></td>
                  <td class="item3">&#8226; Dolfin cruise with Marine biology guide </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 80USD </span></td>
                </tr>
              </table></td>
              </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="item1">Persons:</td>
              <td>&nbsp;</td>
              <td valign="top"><input name="adult" type="text" class="item1f" size="4" maxlength="3" />                &nbsp;<span class="item1">Adult</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="child" type="text" class="item1f" size="4" maxlength="3" />
                <span class="item1">Child</span></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="item1">Arrival Date: </td>
              <td>&nbsp;</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>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top" class="item1">Special Request: </td>
              <td>&nbsp;</td>
              <td><textarea name="special" cols="30" rows="5" class="item1f"></textarea></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>
                <input name="Submit" type="submit" class="it
Link to comment
https://forums.phpfreaks.com/topic/35332-need-help-on-my-form-please/
Share on other sites

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 &amp; 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>&nbsp;</td>
  </tr>
  <tr>
    <td><table width="641" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="641">&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</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">&nbsp;</td>
              <td width="95" valign="top"><span  class="item1">Salutation:</span></td>
              <td width="10">&nbsp;</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">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Surname:</span><span class="item2">*</span></td>
              <td>&nbsp;</td>
              <td valign="top">
                <input name="surname" type="text" class="item1f" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Firstname:<span class="item2">*</span></span></td>
              <td>&nbsp;</td>
              <td valign="top"><input name="firstname" type="text" class="item1f" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span class="item1">E-mail: </span><span class="item2">*</span> </td>
              <td>&nbsp;</td>
              <td valign="top"><input name="email" type="text" class="item1f" /></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Telephone: </span><span class="item2">*</span></td>
              <td>&nbsp;</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>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top" class="item1">Fax: </td>
              <td>&nbsp;</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>&nbsp;</td>
              <td valign="top">&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1">Address:<span class="item2">*</span></span></td>
              <td>&nbsp;</td>
              <td>
                <textarea name="address" cols="30" rows="5" class="item1f"></textarea>            </td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span class="item1">Country:</span></td>
              <td>&nbsp;</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 &amp; Jan Mayen Islands">Svalbard &amp; 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>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span class="item1">Resortl:</span></td>
              <td>&nbsp;</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>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top"><span  class="item1"> Activities:</span></td>
              <td>&nbsp;</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">&#8226; Night snorkeling on the house reef</span></td>
                </tr>
                <tr>
                  <td class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item2"></td>
                  <td><span class="item3">&#8226; Dawn snorkeling on the house reef</span> </td>
                </tr>
                <tr>
                  <td><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item3"></td>
                  <td class="item3"> &#8226; Coral planting in the lagoon </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item4"></td>
                  <td class="item3">&#8226; 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">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item5"></td>
                  <td class="item3">&#8226; Reef Survey - using internationally accepted methods and criteria, a comparative survey of the house </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 24USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item6"></td>
                  <td class="item3">&#8226; Tree Planting: planting of coconut palms on beach </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item7"></td>
                  <td class="item3">&#8226; Bird nesting box construction </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 5USD </span></td>
                </tr>
                <tr>
                  <td rowspan="2" valign="top"><input name="checkbox" type="checkbox" class="item1f" value="item8"></td>
                  <td class="item3">&#8226; Dolfin cruise with Marine biology guide </td>
                </tr>
                <tr>
                  <td class="item3"><span class="item2">&nbsp;&nbsp;&nbsp;Price: 80USD </span></td>
                </tr>
              </table></td>
              </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="item1">Persons:</td>
              <td>&nbsp;</td>
              <td valign="top"><input name="adult" type="text" class="item1f" size="4" maxlength="3" />                &nbsp;<span class="item1">Adult</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input name="child" type="text" class="item1f" size="4" maxlength="3" />
                <span class="item1">Child</span></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td class="item1">Arrival Date: </td>
              <td>&nbsp;</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>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td valign="top" class="item1">Special Request: </td>
              <td>&nbsp;</td>
              <td><textarea name="special" cols="30" rows="5" class="item1f"></textarea></td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>
                <input name="Submit" type="submit" class="item1f" value="Submit" />              </td>
              <td>&nbsp;</td>
       
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]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.