0

I have this code but i can't get it to output in the email address i specified on the form.

<form action="Script/sender_subscription.php" method="post" name="Pillar Gardens Offer Form" target="_blank" id="Pillar Gardens Offer Form">
              <table width="100%" border="1" align="left" cellpadding="1" cellspacing="0" bordercolor="#F8F8F8" bordercolorlight="#CCCCCC">
                <tr>
                  <td colspan="2" align="center" valign="middle"><table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="50%" align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Surname<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><input name="surname" type="text" class="input-border-form" id="surname" value="<?php echo $_GET['surname'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td width="50%" align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="34%" align="left" valign="middle" class="style14 style25 style42 style44"><strong>Other name<span class="warning">*</span></strong></td>
                          <td width="66%" align="right" valign="middle"><input name="name" type="text" class="input-border-form" id="name" value="<?php echo $_GET['name'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="50%" align="left" valign="middle" class="style44 style42 style25 style14"><strong>Residential Address<span class="warning">*</span></strong></td>
                          <td width="50%" align="right" valign="middle"><input name="residential" type="text" class="input-border-form" id="residential" value="<?php echo $_GET['residential'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Date of Birth</strong></td>
                          <td align="right" valign="middle"><input name="dob" type="text" class="input-border-form" id="dob" value="<?php echo $_GET['dob'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Sex<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><label for="sex"></label>
                            <select name="sex" size="1" class="input-border-form" id="sex">
                              <option selected="selected">Select</option>
                              <option>Male</option>
                              <option>Female</option>
                            </select></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="40%" align="left" valign="middle" class="style44 style42 style25 style14"><strong>Marital Status</strong></td>
                          <td width="60%" align="right" valign="middle"><label for="marital"></label>
                            <select name="marital" size="1" class="input-border-form" id="marital">
                              <option selected="selected">Select</option>
                              <option>Single</option>
                              <option>Married</option>
                              <option>Divorced</option>
                              <option>Others</option>
                            </select></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style42 style44 style25 style14"><strong>Nationality<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><select name="country" size="1" class="input-border-form" id="country">
                            <option selected="selected">Select</option>
                            <option>Afghanistan</option>
                            <option>Albania</option>
                            <option>Algeria</option>
                            <option>Andorra</option>
                            <option>Antigua and Barbuda</option>
                            <option>Argentina</option>
                            <option>Armenia</option>
                            <option>Australia</option>
                            <option>Austria</option>
                            <option>Azerbaijan</option>
                            <option>Bahamas</option>
                            <option>Bahrain</option>
                            <option>Bangladesh</option>
                            <option>Barbados</option>
                            <option>Belarus</option>
                            <option>Belgium</option>
                            <option>Belize</option>
                            <option>Benin</option>
                            <option>Bhutan</option>
                            <option>Bolivia</option>
                            <option>Botswana</option>
                            <option>Brazil</option>
                            <option>Brunei</option>
                            <option>Bulgaria</option>
                            <option>Burkina Faso</option>
                            <option>Burundi</option>
                            <option>Cambodia</option>
                            <option>Cameroon</option>
                            <option>Canada</option>
                            <option>Cape Verde</option>
                            <option>Chad</option>
                            <option>Chile</option>
                            <option>China</option>
                            <option>Colombia</option>
                            <option>Comoros</option>
                            <option>Congo</option>
                            <option>Costa Rica</option>
                            <option>C&ocirc;te d'Ivoire </option>
                            <option>Croatia</option>
                            <option>Cuba</option>
                            <option>Cyprus</option>
                            <option>Czech Republic</option>
                            <option>Denmark</option>
                            <option>Djibouti</option>
                            <option>Dominica</option>
                            <option>Dominica Republic</option>
                            <option>Ecuador</option>
                            <option>Egypt</option>
                            <option>El Salvador</option>
                            <option>Equatorial Guinea</option>
                            <option>Eritrea</option>
                            <option>Estonia</option>
                            <option>Ethiopia</option>
                            <option>Fiji</option>
                            <option>Finland</option>
                            <option>France</option>
                            <option>Gabon</option>
                            <option>Gambia, The</option>
                            <option>Georgia</option>
                            <option>Germany</option>
                            <option>Ghana</option>
                            <option>Grenada</option>
                            <option>Guatemala</option>
                            <option>Guinea</option>
                            <option>Guinea-Bissau</option>
                            <option>Guyana</option>
                            <option>Haiti</option>
                            <option>Honduras</option>
                            <option>Hungary</option>
                            <option>Iceland</option>
                            <option>India</option>
                            <option>Indonesia</option>
                            <option>Iran</option>
                            <option>Iraq</option>
                            <option>Ireland</option>
                            <option>Isreal</option>
                            <option>Italy</option>
                            <option>Jamaica</option>
                            <option>Japan</option>
                            <option>Jordan</option>
                            <option>Kazakhstan</option>
                            <option>Kenya</option>
                            <option>Kiribati</option>
                            <option>Korea, North</option>
                            <option>Korea, South</option>
                            <option>Kuwait</option>
                            <option>Kyrgyzstan</option>
                            <option>Laos</option>
                            <option>Latvia</option>
                            <option>Lebanon</option>
                            <option>Lesotho</option>
                            <option>Liberia</option>
                            <option>Libya</option>
                            <option>Liechtenstein</option>
                            <option>Lithuania</option>
                            <option>Luxembourg</option>
                            <option>Madagascar</option>
                            <option>Malawi</option>
                            <option>Malaysia</option>
                            <option>Maldives</option>
                            <option>Mali</option>
                            <option>Malta</option>
                            <option>Marshall Islands</option>
                            <option>Mauritius</option>
                            <option>Mexico</option>
                            <option>Moldova</option>
                            <option>Monaco</option>
                            <option>Mongolia</option>
                            <option>Montenegro</option>
                            <option>Morocco</option>
                            <option>Mozambique</option>
                            <option>Myanmar(Burma)</option>
                            <option>Namibia</option>
                            <option>Naura</option>
                            <option>Nepal</option>
                            <option>Netherlands</option>
                            <option>New Zealand</option>
                            <option>Nicaragua</option>
                            <option>Niger</option>
                            <option>Nigeria</option>
                            <option>Norway</option>
                            <option>Oman</option>
                            <option>Pakistan</option>
                            <option>Palau</option>
                            <option>Panama</option>
                            <option>Paraguay</option>
                            <option>Peru</option>
                            <option>Philippines</option>
                            <option>Poland</option>
                            <option>Portugal</option>
                            <option>Qatar</option>
                            <option>Romania</option>
                            <option>Russia</option>
                            <option>Rwanda</option>
                            <option>Saint Lucia</option>
                            <option>Samoa</option>
                            <option>Saudi Arabia</option>
                            <option>Senegal</option>
                            <option>Serbia</option>
                            <option>Seychelles</option>
                            <option>Sierra Leone</option>
                            <option>Singapore</option>
                            <option>Slovakia</option>
                            <option>Slovenia</option>
                            <option>Solomon Islands</option>
                            <option>Somalia</option>
                            <option>South Africa</option>
                            <option>Spain</option>
                            <option>Sri Lanka</option>
                            <option>Sudan</option>
                            <option>Suriname</option>
                            <option>Swaziland</option>
                            <option>Sweden</option>
                            <option>Switzerland</option>
                            <option>Syria</option>
                            <option>Taiwan</option>
                            <option>Tajikistan</option>
                            <option>Tanzania</option>
                            <option>Thailand</option>
                            <option>Togo</option>
                            <option>Tonga</option>
                            <option>Trinidad and Tobago</option>
                            <option>Tunisia</option>
                            <option>Turkey</option>
                            <option>Turkmenistan</option>
                            <option>Tuvalu</option>
                            <option>Uganda</option>
                            <option>Ukraine</option>
                            <option>United Arab Emirates</option>
                            <option>United Kingdom</option>
                            <option>United States</option>
                            <option>Uruguay</option>
                            <option>Uzbekistan</option>
                            <option>Vanuatu</option>
                            <option>Vatican City</option>
                            <option>Venezuela</option>
                            <option>Vietnam</option>
                            <option>Western Sahara</option>
                            <option>Yemen</option>
                            <option>Zambia</option>
                            <option>Zimbabwe</option>
                          </select></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="43%" align="left" valign="middle" class="style42 style44 style25 style14"><strong>State of Origin</strong></td>
                          <td width="57%" align="right" valign="middle"><select name="state" size="1" class="input-border-form" id="state">
                            <option selected="selected">Select</option>
                            <option>Abia</option>
                            <option>Abuja</option>
                            <option>Adamawa</option>
                            <option>Anambra</option>
                            <option>Akwa Ibom</option>
                            <option>Bauchi</option>
                            <option>Bayelsa</option>
                            <option>Benue</option>
                            <option>Borno</option>
                            <option>Cross River</option>
                            <option>Delta</option>
                            <option>Ebonyi</option>
                            <option>Edo</option>
                            <option>Ekiti</option>
                            <option>Enugu</option>
                            <option>Gombe</option>
                            <option>Imo</option>
                            <option>Jigawa</option>
                            <option>Kaduna</option>
                            <option>Kano</option>
                            <option>Katsina</option>
                            <option>Kebbi</option>
                            <option>Kogi</option>
                            <option>Kwara</option>
                            <option>Lagos</option>
                            <option>Nasarawa</option>
                            <option>Niger</option>
                            <option>Ogun</option>
                            <option>Ondo</option>
                            <option>Osun</option>
                            <option>Oyo</option>
                            <option>Plateau</option>
                            <option>Rivers</option>
                            <option>Sokoto</option>
                            <option>Taraba</option>
                            <option>Yobe</option>
                            <option>Zamfara</option>
                            <option>Others</option>
                          </select></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Occupation<span class="warning"></span></strong><span class="warning">*</span></td>
                          <td align="right" valign="middle"><input name="occupation" type="text" class="input-border-form" id="occupation" value="<?php echo $_GET['occupation'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Telephone<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><input name="telephone" type="text" class="input-border-form" id="telephone" value="<?php echo $_GET['telephone'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="39%" align="left" valign="middle" class="style42 style44 style25 style14"><strong>Office Address<span class="warning">*</span></strong></td>
                          <td width="61%" align="right" valign="middle"><input name="office" type="text" class="input-border-form" id="office" value="<?php echo $_GET['office'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style14 style25 style44 style42"><strong>Postal Address<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><input name="postal" type="text" class="input-border-form" id="postal" value="<?php echo $_GET['postal'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Banker</strong></td>
                          <td align="right" valign="middle"><input name="banker" type="text" class="input-border-form" id="banker" value="<?php echo $_GET['banker'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style14 style25 style42 style44"><strong>E-mail<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><input name="from" type="text" class="input-border-form" id="from" value="<?php echo $_GET['from'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style42 style44 style25 style14"><strong>Next of Kin<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><input name="kin" type="text" class="input-border-form" id="kin" value="<?php echo $_GET['kin'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Telephone<span class="warning">*</span></strong></td>
                          <td align="right" valign="middle"><input name="kintele" type="text" class="input-border-form" id="kintele" value="<?php echo $_GET['kintele'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="39%" align="left" valign="middle" class="style42 style44 style25 style14"><strong>Address</strong><span class="warning">*</span></td>
                          <td width="61%" align="right" valign="middle"><input name="kinad" type="text" class="input-border-form" id="kinad" value="<?php echo $_GET['kinad'];?>" size="23" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle" bgcolor="#F8F8F8">&nbsp;</td>
                    </tr>
                    <tr>
                      <td height="30" colspan="2" align="center" valign="middle"><table width="90%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="25%" align="left" valign="middle" class="style22">Proposed Use of Land<span class="warning">*</span></td>
                          <td width="20%" align="left" valign="middle" class="style22">Payment Terms<span class="warning">*</span></td>
                          <td width="20%" align="left" valign="middle" class="style22">Plot Option(s)<span class="warning">*</span></td>
                          <td width="25%" align="left" valign="middle" class="style22">House Type(s)<span class="warning">*</span></td>
                        </tr>
                        <tr>
                          <td align="left" valign="top" class="style22"><p>
                            <label>
                              <input type="checkbox" name="proposed_residential" value="1" id="ProposedUseofland_0" />
                              <span class="style16">Residential</span></label>
                            <br />
                            <label>
                              <input type="checkbox" name="proposed_commercial" value="1" id="ProposedUseofland_1" />
                              <span class="style16">Commercial</span></label>
                          </p></td>
                          <td align="left" valign="top" class="style22"><p>
                            <label>
                              <input name="payment_outright" type="checkbox" class="style16" id="PaymentTerms_0" value="2" />
                              <span class="style16">Outright</span></label>
                            <span class="style16"><br />
                              <label>
                                <input type="checkbox" name="payment_3" value="2" id="PaymentTerms_1" />
                                3 months</label>
                              <br />
                              <label>
                                <input type="checkbox" name="payment_6" value="2" id="PaymentTerms_2" />
                                6 months</label>
                              <br />
                              <label>
                                <input type="checkbox" name="payment_12" value="2" id="PaymentTerms_3" />
                                12 months</label>
                              <br />
                              <label>
                                <input type="checkbox" name="payment_18" value="2" id="PaymentTerms_4" />
                                18 months</label>
                              <br />
                              <label>
                                <input type="checkbox" name="payment_24" value="2" id="PaymentTerms_5" />
                                24 months</label>
                              </span> <br />
                          </p></td>
                          <td align="left" valign="top" class="style22"><br />
                            <table width="100%" cellpadding="0" cellspacing="0">
                              <tr>
                                <td align="left" valign="top" class="style16">Number of Plot(s)</td>
                              </tr>
                              <tr>
                                <td align="left" valign="top"><label for="plots">
                                  <input name="plots" type="text" class="input-border-form" id="plots" value="<?php echo $_GET['plots'];?>" size="18" />
                                </label></td>
                              </tr>
                            </table></td>
                          <td align="left" valign="top" class="style22"><p>
                            <label> <span class="style16">
                              <input type="checkbox" name="house_bungalow" value="3" id="HouseTypes_0" />
                              Bungalow</span></label>
                            <span class="style16"><br />
                              <label>
                                <input type="checkbox" name="house_2bungalow" value="3" id="HouseTypes_1" />
                                2 Bedroom Bungalow</label>
                              <br />
                              <label>
                                <input type="checkbox" name="house_3bungalow" value="3" id="HouseTypes_2" />
                                3 Bedroom Bungalow</label>
                              <br />
                              <label>
                                <input type="checkbox" name="house_duplex" value="3" id="HouseTypes_3" />
                                Duplex</label>
                              <br />
                            </span></p></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="48%" align="left" valign="middle" class="style44 style42 style25 style14"><strong>Attach Passport<span class="warning">*</span></strong></td>
                          <td width="52%" align="right" valign="middle"><label for="passport"></label>
                            <input name="passport" type="file" class="input-border-form" id="passport" size="12" /></td>
                        </tr>
                      </table></td>
                      <td align="center" valign="middle" bgcolor="#F8F8F8"><table width="80%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="48%" align="left" valign="middle" class="style44 style42 style25 style14"><strong>Attach Signature<span class="warning">*</span></strong></td>
                          <td width="52%" align="right" valign="middle"><label for="passport"></label>
                            <input name="signature" type="file" class="input-border-form" id="fileField" size="12" /></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td align="center" valign="middle">&nbsp;</td>
                      <td align="center" valign="middle">&nbsp;</td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center" valign="middle"><table width="90%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style25"><div align="justify">By clicking on the submit button below that means you hereby affirm that the information provided above in partial fulfilment of the terms of purchase of land at Propertylink Real Estate Investment Limited is true. I accept that any default in paying my monthly subscription for three(3) consecutive months or request for refunds based on discontinuation of the contract of purchase already enter into will attract a penalty charge of 15% flat on the total cost/price of the property purchased.</div></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td height="25" colspan="2" align="center" valign="middle" bgcolor="#999999"><table width="90%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style14 style40 style41 style36"><span class="style14 style40 style41 style44"><span class="style46">Image Verification</span></span></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center" valign="middle"><table width="90%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="left" valign="middle" class="style44 style42 style25 style14"><strong>Please type the character you see in the image</strong></td>
                          <td align="right" valign="middle" class="inside_pg_style"><input name="verif_box" type="text" class="input-border-form" id="verif_box" size="23" />
                            <span style="margin:0px; font-family:Verdana, Arial, Helvetica, sans-serif;font-size:11px; width:300px;"><img src="verificationimage.php?<?php echo rand(0,9999);?>" alt="verification image, type it in the box" width="50" height="24" align="absbottom" /></span></td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center" valign="middle" bgcolor="#F8F8F8"><table width="90%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="right" valign="middle" class="inside_pg_style"><?php if(isset($_GET['wrong_code'])){?>
                            <div class="style16" style="border:1px solid #990000; background-color:#D70000; color:#000000; padding:4px; padding-right:6px; width:295px;">Wrong verification code</div>
                            <?php ;}?>
                            &nbsp;</td>
                        </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td colspan="2" align="center" valign="middle"><table width="90%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="center" valign="middle" class="inside_pg_style"><input name="button3" type="submit" class="input-border-form" id="button3" value="Send" />
                            <input name="Reset" type="reset" class="input-border-form" id="button2" value="Reset" /></td>
                        </tr>
                      </table></td>
                    </tr>
                  </table></td>
                </tr>
              </table>
            </form>


and the php script

<?php
// ----------------------------------------- 
//  The Web Help .com
// ----------------------------------------- 
// remember to replace [email]you@email.com[/email] with your own email address lower in this code.

// load the variables form address bar
$surname = $_POST["surname"];
$name = $_POST["name"];
$residential = $_POST["residential"];
$dob = $_POST["dob"];
$sex = $_POST["sex"];
$marital = $_POST["marital"];
$country = $_POST["country"];
$state = $_POST["state"];
$occupation = $_POST["occupation"];
$telephone = $_POST["telephone"];
$office = $_POST["office"];
$postal = $_POST["postal"];
$banker = $_POST["banker"];
$from = $_POST["from"];
$kin = $_POST["kin"];
$kintele = $_POST["kintele"];
$kinad = $_POST["kinad"];
$proposed_residential = $_POST["proposed_residential"];
$proposed_commercial = $_POST["proposed_commercial"];
$payment_ouright = $_POST["payment_outright"];
$payment_3 = $_POST["payment_3"];
$payment_6 = $_POST["payment_6"];
$payment_12 = $_POST["payment_12"];
$payment_18 = $_POST["payment_18"];
$payment_24 = $_POST["payment_24"];
$plots = $_POST["plots"];
$house_bungalow = $_POST["house_bungalow"];
$house_2bungalow = $_POST["house_2bungalow"];
$house_3bungalow = $_POST["house_3bungalow"];
$house_duplex = $_POST["house_duplex"];
$passport = $_POST["passport"];
$signature = $_POST["signature"];
$verif_box = $_POST["verif_box"];

// remove the backslashes that normally appears when entering " or '
$surname = stripslashes($surname);
$name = stripslashes($name);
$residential = stripslashes($residential);
$dob = stripslashes($dob);
$occupation = stripslashes($occupation);
$telephone = stripslashes($telephone);
$office = stripslashes($office);
$postal = stripslashes($postal); 
$email = stripslashes($email); 
$kin = stripslashes($kin);
$kintele = stripslashes($kintele);
$kinad = stripslashes($kinad); 
$plots = stripslashes($plots); 

// check to see if verificaton code was correct
if(md5($verif_box).'a4xn' == $_COOKIE['tntcon']){
	// if verification code was correct send the message and show this page
	mail("sales@propertylinkng.com", 'Subscription Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");
	// delete the cookie so it cannot sent again by refreshing this page
	setcookie('tntcon','');
} else if(isset($message) and $message!=""){
	// if verification code was incorrect then return to contact page and show error
	header("Location: sales.freequote.php?subject=$subject&from=$from&message=$message&wrong_code=true");
	exit;
} else {
	echo "no variables received, this page cannot be accessed directly";
	exit;
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Offer Subscription E-Mail Sent!</title>
<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
}
a:link {
	color: #0099FF;
}
a:visited {
	color: #0099FF;
}
a:hover {
	color: #0099FF;
}
a:active {
	color: #0099FF;
}
.style2 {
	font-size: 14px;
	font-family: "Times New Roman", Times, serif;
}
.style3 {
	font-family: Arial, Helvetica, sans-serif;
	color: #000000;
	font-size: 12px;
}
-->
</style></head>

<body>
<span class="style2"> <span class="style3">Thank you for filling out our form. You'll be hearing from us shortly about your subscription for Pillar Gardensn offer. Please check the e-mail address you specified on the form for more details and one of our representatives will be calling you shortly concerning this offer with more information.</span><br />
<br />
</span><a href="javascript:window.close();">Close Window</a>&nbsp;
</body>
</html>

please i need help

Edited by Ezzaral: Added code tags. Please use them to format any code that you post.

4
Contributors
9
Replies
10
Views
5 Years
Discussion Span
Last Post by Stefano Mtangoo
0

Are you running this on a remote server or from your own machine's localhost?

If you are testing on localhost (or if your remote server doesn't have PHP mail configured) you are likely to have issues sending mail.

0

I am running this on a remote server and the feedback am getting inside the mail is just an ip address, but if I run it on my own machine(localhost) it works fine. I think php mail is configured on my remote server but how will I know if php is configured. Please is there a way I can configure sending mail on my own machine. Thanks for replying me

1

Darn, can't help you here, but I like the title of your thread. Imagine my surprise of seeing over 600 lines of code.

0

Does anyone has a php script that can work with the form? A phone that has all inputs like file field, dropdown, checkbox and radio button. An email based script.thanks ardav, much love but if you have a working script that can validate, process and submit on remote and localhost I will be glad

0

On line 565 of the code you posted before, I see this:

mail("sales@propertylinkng.com", 'Subscription Form: '.$subject, $_SERVER['REMOTE_ADDR']."\n\n".$message, "From: $from");

Which would explain why all you're seeing is an IP address, because you are putting a concatenation of $_SERVER (the IP address), then "\n\n" (two new lines), and finally $message.

The problem here is that I don't see the $message variable declared or set with a value anywhere. If you do that, you'll probably start seeing more than an IP address in the body of your email.

0

@Tyskby...the form interface those not contain a message box. Please how do I resolve all these problems or can you please rewrite the script for me? Hope to hear from you soonest. Thanks

0

No, I will not write the script for you (and I doubt you'll find anyone here who will). This is a forum for learning.

However, if you are looking to have someone write scripts for you, try posting it as a job. Since programming is a professional skill, most people expect to get paid or otherwise compensated for writing code for others.

If you are interested in learning how to do this yourself, what I can tell you is that the reason there is nothing other than an IP address in your email is that the variable $message is empty. Decide on what you want to fill the body of your email with, and then set $message to that text.

You can either do it with a static line of text:

$message = "Thank you for subscribing!";

Or with other variables from the form:

$message = "Thank you, $name $surname, for subscribing!  We will contact you with the email address you provided: $email.  Have a great day!"
0

@Tyskby...you have being a great deal of help to me and I appreciate this. I will try and make the necessary corrections to see what I will be getting inside the email address I specified inside the script. God bless you bloke!!!

0

@Tyskby...you have being a great deal of help to me and I appreciate this. I will try and make the necessary corrections to see what I will be getting inside the email address I specified inside the script. God bless you bloke!!!

next time you put only relevant part of script not whole thing. I could not even see where the problem is because I could not read the whole thing (617 lines)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.