Jump to content


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

  • Please log in to reply
1 reply to this topic

#1 staceinvader

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 22 July 2006 - 11:21 PM

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? 

#2 Hybride

  • Members
  • PipPipPip
  • Advanced Member
  • 286 posts

Posted 22 July 2006 - 11:37 PM

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.

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>';

"Communications are not at optimal conditions due to increased ion capacity within the lower atmosphere."

Portfolio: Hybride Anekyu
Powered by: Immortal Design

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users