Jump to content

Archived

This topic is now archived and is closed to further replies.

staceinvader

I'm new with PHP...and i need some help, please.

Recommended Posts

Hi,
i made a form, and it works fine...it returns all of the information that the user enters to my email address (and to the address they enter), but i need to add text to the email that is generated.

The form is stating agreement to a contract, and i need the text of the contract to appear in the email.

Can anyone help me out, please? 

Share this post


Link to post
Share on other sites
This is a skeleton version of the email script only since am not sure of your variables, so you would have to change them as you see necessary. If you can, post up your code.

[code]if ($finished) {
//Send email
$body = "I have received your information. It is: '{$_POST['information']}'. \n\n";
mail ($_POST['email'], $subjectline, $body, $youremail);

//This part is optional; it shows on the page that the email has been sent.
echo '<p>Your information has been sent, and will be receiving a confirmation email.</p>';

//Should the info fail to process
} else {
echo '<p>Please go back and try again</p>';
}

[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.