Depends on how you want it, everything in a one table or everything has it's own table.
All in one table:
<?php
$msg = '';
$msg .="<table border=\"1\">\n";
foreach ($_POST as $name => $value) {
$msg .= '<tr><td><font size=\"2\">'$name . ': ' . $value . '</font></td></tr>\n';
}
$msg .="</table>\n";
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* and now mail it */
mail($to, $subject, $msg, $headers);
?>
Or everything has it's own table:
<?php
$msg = '';
foreach ($_POST as $name => $value) {
$msg .= '<table border=\"1\">><tr><td><font size=\"2\">'$name . ': ' . $value . '</font></td></tr></table>\n';
}
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* and now mail it */
mail($to, $subject, $msg, $headers);
?>