If I use plain text I can get all the entered information to email correctly. However, I wanted to have the information from the form laid out in html so that I can make it look like a completed document staff would normally see instead of just a series of lines with text.
I have tried a number of different combinations to get this to work but am getting nowhere fast!
Here is what I have so far:
Expand|Select|Wrap|Line Numbers
- $deptname = $_POST['deptname'] ;
- $add1 = $_POST['add1'] ;
- etc
- $message = '
- <html>
- <body>
- Department Name: <?php $deptname ?>
- Address: <?php $add1 ?>
- etc
- mail($to, $message, $headers )
- </body>
- </html>
- ';
I am receiving the email in HTML with the "Department Name:" part displayed but the user entered value is blank...
I'm fairly new to both html and php and cannot seem to find how to get this working so that I can apply the layout and formatting!!
Any help would be greatly appreciated!
Thanks
Carl