Page 1 of 1

Help needed with PHP

Posted: Mon Jan 26, 2009 1:39 pm
by gulliver
Hi there

Just a quick one but can someone take a quick look at the PHP below and spot why it might not work as a sendmail function.

Thanks in advance for your help.

Code: Select all

<?php
mail("rich.saunders1981@btinternet.com","Marpatt Enquiry Form","
Body of your message:/n".
$_POST[Title] 
$_POST[name]
$_POST[Company]
$_POST[Address]
$_POST[hear]
$_POST[Telephone]
$_POST[Fax]
$_POST[email]
$_POST[Enquiry]
$_POST[Bespoke]
$_POST[Classic]
$_POST[Bedroom]
$_POST[All]."
","From:$email");
header( "Location: http://www.marpatt.co.uk/thank_you.html" );
 
?>
 
 
 
 
Thanks

G

Re: Help needed with PHP

Posted: Tue Jan 27, 2009 12:31 am
by jothirajan
<?php
mail("rich.saunders1981@btinternet.com","Marpatt Enquiry Form","
Body of your message:/n".
$_POST[Title]
$_POST[name]
$_POST[Company]
$_POST[Address]
$_POST[hear]
$_POST[Telephone]
$_POST[Fax]
$_POST[email]
$_POST[Enquiry]
$_POST[Bespoke]
$_POST[Classic]
$_POST[Bedroom]
$_POST[All]."
","From:$email");
header( "Location: http://www.marpatt.co.uk/thank_you.html" );
?>

Ok friend

Just we may start from here.

This is the general mailing code

mail($recipient, $subject, $mail_body, $header);

Please assign the below $_POST into an variable
$var_jo="$_POST[Title].$_POST[Title].etc"


$_POST[Title]
$_POST[name]
$_POST[Company]
$_POST[Address]
$_POST[hear]
$_POST[Telephone]
$_POST[Fax]
$_POST[email]
$_POST[Enquiry]
$_POST[Bespoke]
$_POST[Classic]
$_POST[Bedroom]
$_POST[All]."

Try this one and get back to me...it will work

Re: Help needed with PHP

Posted: Tue Jan 27, 2009 12:40 am
by gulliver
Hi Thanks for your help on this it is very much appreciated. The form works brilliantly now.

Thanks again

Re: Help needed with PHP

Posted: Wed Jan 28, 2009 12:46 am
by jothirajan
You are almost welcome....

Get back to me....if you want more to have...

.......Thanks for your appreciation...