I am trying to gather all users data from a html form and send that data in a php message. I have created an html table and populated it with the data. The problem is that oncei receive the email i just sent , it is not parsed and shown on a table rather but the whole html is in the mail. This is what i have.
$newmessage=<<<NEWMESSAGE
<html>
<head>
<table width="200" border="2" cellspacing="2" cellpadding="2">
<caption>
Please Quote the price of the following parts numbers
</caption>
<tr>
<td>1 </td>
<td>{#$parts_array[0]#} </td>
<td>{#$parts_array[1]#} </td>
<td> </td>
<td>2 </td>
<td>{#$parts_array[2]#} </td>
<td>{#$parts_array[3]#} </td>
<td> </td>
<td>3 </td>
<td>{#$parts_array[4]#} </td>
<td>{#$parts_array[5]#} </td>
</tr>
<tr>
<td>4 </td>
<html>
<head>
mail($email, $subject, $message, "From: $username");
why do i make sure that the datq will me in a grid table because this what i built in html? Help help
Mailing my form data in an html table
Moderator: General Moderators
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA