Help needed with PHP

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
gulliver
Forum Newbie
Posts: 2
Joined: Mon Jan 26, 2009 1:37 pm

Help needed with PHP

Post 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
jothirajan
Forum Commoner
Posts: 69
Joined: Tue Jan 27, 2009 12:06 am

Re: Help needed with PHP

Post 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
gulliver
Forum Newbie
Posts: 2
Joined: Mon Jan 26, 2009 1:37 pm

Re: Help needed with PHP

Post by gulliver »

Hi Thanks for your help on this it is very much appreciated. The form works brilliantly now.

Thanks again
jothirajan
Forum Commoner
Posts: 69
Joined: Tue Jan 27, 2009 12:06 am

Re: Help needed with PHP

Post by jothirajan »

You are almost welcome....

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

.......Thanks for your appreciation...
Post Reply