Hello all, I`m having problems with my contact form
The problem with the contact form is it doesnt seam to work all the time (works very rarely) and doesnt send an email to say thankyou for contacting us (set up in my microsoft office outlook somewhere that i cannot find for the life off me) is there something wrong with this?
Thanks for any help
The problem with the contact form is it doesnt seam to work all the time (works very rarely) and doesnt send an email to say thankyou for contacting us (set up in my microsoft office outlook somewhere that i cannot find for the life off me) is there something wrong with this?
HTML:
<?php
$message= '<table width="98%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td colspan="2" valign="top" class="arialblack">
<div align="center"><strong>Customer Details</strong><br><br></div></td>
</tr>
<tr>
<td width="30%" valign="top" class="arialblack">Full Name:</td>
<td width="70%" valign="top" class="arialblack">'.$_POST['fullname'].'</td>
</tr>
<tr>
<td width="30%" valign="top" class="arialblack">Business Name:</td>
<td width="70%" valign="top" class="arialblack">'.$_POST['businessname'].'</td>
</tr>
<tr>
<td width="30%" valign="top" class="arialblack">Address:</td>
<td width="70%" valign="top" class="arialblack">'.$_POST['address'].'</td>
</tr>
<tr>
<td width="30%" valign="top" class="arialblack">Post Code:</td>
<td width="70%" valign="top" class="arialblack">'.$_POST['postcode'].'</td>
</tr>
<tr>
<td width="30%" valign="top" class="arialblack">Email:</td>
<td width="70%" valign="top" class="arialblack">'.$_POST['emailaddress'].'</td>
</tr>
<tr>
<td width="30%" valign="top" class="arialblack">Phone Number:</td>
<td width="70%" valign="top" class="arialblack">'.$_POST['phonenumber'].'</td>
</tr>
</table>';
$email = "info@#####.co.uk";
$emailm = "info@#####.co.uk";
$from = $email;
$subject = "#####.co.uk Enquiry";
$headers= "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers.= "From: $from\r\n";
mail($emailm, $subject, $message, $headers);
header('location:http://www.#####.co.uk/thankyou.html')
?>
Thanks for any help