Jump to content

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


staceinvader

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? 
Link to comment
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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.