Captain Pooka
Daemon Poster
- Messages
- 1,108
aw man.... thanks anyways guys
Captain Pooka said:well, like I said, mostly old people that dont know computer will be the ones doing this, so I can have the mail to on there.. because they wont know how to change their default email plus, I tried this with hotmail, and you also have to install some hotmail attachment 1.5.0 or something.. to much trouble for them. And I dont know PHP
<form method="POST" action="contact2.php">
<input name="name" type="text" id="name" size="40">
<input name="email" type="text" id="email" size="40">
<input name="subject" type="text" id="subject" size="40">
<textarea name="message" cols="40" rows="7"></textarea>
<input name="Submit" type="submit" value="Send Message" />
<?php
$email = $HTTP_POST_VARS[email];
$mailto = "qqsnare@gmail.com";
$mailsubj = "$subject\n";
$mailhead = "<b>From:</b> $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Message body:\n";
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
$mailbody .= "$key : $val\n"; }
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>