Thread: form to email
View Single Post
03-12-2007, 06:12 PM
#6
Xi0s is offline Xi0s
Status: Sin Binner
Join date: Dec 2006
Location: Huddersfield, UK
Expertise:
Software:
 
Posts: 384
iTrader: 3 / 83%
 

Xi0s is on a distinguished road

Send a message via MSN to Xi0s

  Old

<tr>
<td height="19">&nbsp;</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>

tidy up your coding and replace with:
<tr class="spacer"><td colspan="6"></td></tr>

checkbox xhtml
<input type="checkbox" checked="checked" name="NAME!" />

and as for mail scripts first:

change ur form tag to <form name="email" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">

This will make your form post into the same document.

Then at the top add:

<?php
foreach($_POST as $key => $value){
$_POST[$key] = addslashes($value);
}
// tidied up the post and made it formatted .
mail(mail arguments);
?>

visit this page for more info on the mail(); command:

http://uk3.php.net/function.mail