Hi Guys
You’re probably thinking this should go in the php room but im nearly 100% sure the php script is correct.
I have a quotation form (i.e. a contact form) on a html that then goes to a php page to submit an email to my clients ac – see below.
[URL=”http://www.metal-closures.co.uk/contact_quotationform.html”]http://www.metal-closures.co.uk/contact_quotationform.html
However he uses Outlook/ MS Exchange ( I will point out now, I have never used exchange in my life and not really sure how it effects things).
IF I fill the form in with my details online and click send, my client receives the email in his inbox and the same when my business partner does it from his computer elsewhere.
But when my client fills the form in from his computer and clicks send then he receives NO email at all…
So im fairly sure the php script works because it works just not when my client does it. My client is using IE 8 and Outlook 07 and MS Xchng.
Here is the code below for any geeks like me ? lol
HTML Page:
[code=html] <h3>Quotation Form </h3>
<form name=”enquiry” id=”enquiry” method=”post” action=”contact_quotationthankyou.php”>
<table width=”400″ border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td height=”30″>Name:</td>
<td><input name=”name” type=”text” id=”name”></td>
</tr>
<tr>
<td height=”30″>Position:</td>
<td><input name=”position” type=”text” id=”position”></td>
</tr>
<tr>
<td height=”30″>Company:</td>
<td><input name=”company” type=”text” id=”company”></td>
</tr>
<tr>
<td height=”30″>Email:</td>
<td><input name=”email” type=”text” id=”email”></td>
</tr>
<tr>
<td height=”30″ >Telephone:</td>
<td><input name=”phone” type=”text” id=”phone”></td>
</tr>
<tr>
<td height=”30″>Call Me: </td>
<td><input name=”callme” type=”checkbox” id=”callme” value=”Yes”> </td>
</tr>
<tr>
<td height=”30″>Services Interest in: </td>
<td><table width=”400″ border=”0″ cellspacing=”0″ cellpadding=”0″>
<tr>
<td height=”30″ colspan=”4″><hr></td>
</tr>
<tr>
<td><input name=”screwcaps” type=”checkbox” id=”screwcaps” value=”Yes”></td>
<td height=”20″>Screw Caps </td>
<td><input name=”sliplidcontainers” type=”checkbox” id=”sliplidcontainers” value=”Yes”></td>
<td>Slip Lid Containers </td>
</tr>
<tr>
<td><input name=”polishtins” type=”checkbox” id=”polishtins” value=”Yes”></td>
<td height=”20″>Polish Tins</td>
<td><input name=”pharmacueticalcaps” type=”checkbox” id=”pharmacueticalcaps” value=”Yes”></td>
<td>Pharmaceutical Caps</td>
</tr>
<tr>
<td><input name=”snufftins” type=”checkbox” id=”snufftins” value=”Yes”></td>
<td height=”20″>Snuff Tins</td>
<td><input name=”compositetubeends” type=”checkbox” id=”compositetubeends” value=”Yes”></td>
<td>Composite Tube Ends</td>
</tr>
<tr>
<td><input name=”vacuumsealed” type=”checkbox” id=”vacuumsealed” value=”Yes”></td>
<td height=”20″>Vacuum Sealed </td>
<td><input name=”bespokework” type=”checkbox” id=”bespokework” value=”Yes”></td>
<td>Bespoke Work</td>
</tr>
</table></td>
</tr>
<tr>
<td height=”149″>Your Requirements: </td>
<td><textarea name=”enquirytext” cols=”40″ rows=”7″ id=”enquirytext”></textarea></td>
</tr>
<tr>
<td height=”30″> </td>
<td><input type=”submit” name=”submit” value=”Send”></td>
</tr>
</table>
</form>
And PHP code is…
[code=php]<?php
if(isset($_POST[‘submit’])) {
$to = “[email protected]”;
$subject = “Metal-Closures Quotation Form”;
$name = $_POST[‘name’];
$email = $_POST[’email’];
$position = $_POST[‘position’];
$company = $_POST[‘company’];
$telephone = $_POST[‘phone’];
$callme = $_POST[‘callme’];
$screwcaps = $_POST[‘screwcaps’];
$sliplidcontainers = $_POST[‘sliplidcontainers’];
$polishtins = $_POST[‘polishtins’];
$pharmacueticalcaps = $_POST[‘pharmacueticalcaps’];
$snufftins = $_POST[‘snufftins’];
$compositetubeends = $_POST[‘compositetubeends’];
$vacuumsealed = $_POST[‘vacuumsealed’];
$bespokework = $_POST[‘bespokework’];
$enquirytext = $_POST[‘enquirytext’];
$body = “Name: $namen
E-Mail: $emailn
Position: $position n
Company: $company n
Telephone: $phone n
Call me: $callme n
Screw caps: $screwcaps n
Slip Lid Contianers: $sliplidcontainers n
Polish tins: $polishtins n
Pharmacuetical Caps: $pharmacueticalcaps n
Snuff tins: $snufftins n
Composite Tube Ends: $compositetubeends n
Vacuum Sealed: $vacuumsealed n
Bespoke Work: $bespokework n
Enquiry: $enquirytext
“;
mail($to, $subject, $body);
} else {
echo “error!”;
}
?>
Any help would be much appreciated..
Thanks