Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

outputting HTML form data to e-mail

Status
Not open for further replies.

rskuse

Technical User
Jul 18, 2002
74
GB
 
of course you can send it as a html page

just put everything into one variable, e.g. $your_html_form, and use this code

$body ='<head><meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso8859-2&quot;>
<body>
'.$your_html_form.'</body></html>';
$header_of_message = &quot;From: questionnaire <yourmail@yourdomain.com>\n&quot;;
$header_of_message .= &quot;MIME-Version: 1.0\n&quot;;
$header_of_message .= &quot;Content-Type: text/html;\n&quot;;
$subject = &quot;questionnaire report&quot;;
mail(&quot;yourmail@yourdomain.com&quot;, $subject, $body, $header_of_message);}
 
Now why didn't I think of that!!

Thankyou very much
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top