Menu

How to send form contents in an HTML table?

Help
eschamp
2006-07-06
2013-06-03
  • eschamp

    eschamp - 2006-07-06

    I'd like to be able to place the data entered by the form user in a table in an HTML page that I can email.

    I've added the $header variable that TNE recommeded but I don't see how to format the stuff.

    I do have the "Thank You" page formatted in HTML.

    Thanks.

     
    • C M

      C M - 2006-08-01

      Here's what i've used....

      $message="

      (( in here your form body exists. You need to use proper HTML tags, starting and ending with <HTML> and </HTML> respectively

      ";

      And then your header lines with:

      $mailheaders = "From: ((YOU SPECIFY)) \n";
      $mailheaders .= "Content-Type: text/html; charset=iso-8859-1\n";
      mail($recipient, $subject, $message, $mailheaders);
      header("Refresh: 0;url=((YOU SPECIFY THE URL OF THE CONFIRMATION PAGE))");

      For the above, you customize what I've specified in between ((the brackets)) but don't forget to take the (( and )) out :)

      You need to specify the $recipient and $subject variables as well.

       

Log in to post a comment.