Thread: mailto problem
View Single Post
  #6 (permalink)  
Old 11-03-09, 06:10 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
HTML Code:
<form action="sendemail.php">
<label>Name: <input type="text" name="name" /></label>
<label>email: <input type="text" name="email" /></label>
<input type="submit" /><input type="reset">
</form>
PHP Code:

foreach ($_POST as $k => $v)

  
$message.=$k.': '.$v;
mail( --- can't remember the mail parameters --- go to PHP.net --- ) 
You should validate and sanitize the data, this type of form is often used for spamming.
Reply With Quote