Captain Pooka
Daemon Poster
- Messages
- 1,108
ok, this is what I have.. you can paste into notepad...
---------------------------------
<form method="POST" action="contact2.php">
<input name="name" type="text" id="name" size="40">
<br>
Your Name
<br><br>
<input name="email" type="text" id="email" size="40">
<br>
Your Street Address
<br>
<br>
<input name="phone" type="text" id="subject" size="40">
<br>
Your Phone Number
<br>
<br>
<input name="subject" type="text" id="subject" size="40">
<br>
Your Email Address
<br>
<br>
<br>
<textarea name="message" cols="40" rows="7"></textarea>
<br>
Please Explain your problem here in as much detail as possible,
<br>
as it will help to know your problem before I get there.
<br>
<input name="Submit" type="submit" value="Send Message" />
<?php
$email = $HTTP_POST_VARS;
$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);
?>
-----------------------------------------
I dont know how to do the <php> part though.. and when I put junk in the boxes I get "page cannot be displayed"
? lol
-Q
---------------------------------
<form method="POST" action="contact2.php">
<input name="name" type="text" id="name" size="40">
<br>
Your Name
<br><br>
<input name="email" type="text" id="email" size="40">
<br>
Your Street Address
<br>
<br>
<input name="phone" type="text" id="subject" size="40">
<br>
Your Phone Number
<br>
<br>
<input name="subject" type="text" id="subject" size="40">
<br>
Your Email Address
<br>
<br>
<br>
<textarea name="message" cols="40" rows="7"></textarea>
<br>
Please Explain your problem here in as much detail as possible,
<br>
as it will help to know your problem before I get there.
<br>
<input name="Submit" type="submit" value="Send Message" />
<?php
$email = $HTTP_POST_VARS;
$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);
?>
-----------------------------------------
I dont know how to do the <php> part though.. and when I put junk in the boxes I get "page cannot be displayed"
? lol
-Q