I have a form that once it is filled out and submitted needs to be emailed. I know I can send HTML via the 'mail()' function but I don't know how to capture the filled out form without repeating all the tags a second time in the code that sets up the massage body.
Is there way to create the form so that it can be both displayed and filled in by a user then assigned, in tact to the message body? TIA
Code:
<html>
.
.
.
<form ...>
blah
blah
blah
</form>
<?php
.
.
.
$message="<html>\n...\n<form ...>\n".$data1."\n".data2."\n".data3."\n</form>\n...\n</html>"
.
.
.
?>
.
.
.
</html>