NameSilo

HTML Email Forms

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch
Status
Not open for further replies.
I would like to set up an email form on my site (http://www.tutorial-wizard.com) for people to easily and quickly submit their tutorials. This form will be for a submit button to send several fields to my email quickly. There is no deadline or set price, so I will be taking any quotes on here. Anyone who has any offers, please post here and I will get back to you on it.
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
This is just a basic contact form...edit its fields to fit yours



The actual form:
Code:
<form action="mail.php" method="post">

Your Name: <input type="text" name="name"><br>

E-mail: <input type="text" name = "email"><br><br>

Your Comments:<br>

<textarea name="comment"></textarea><br><br>

<input type="submit" value="Tell Us!">

-=-=-=-=
save this as mail.php:
-=-=-=-=
Code:
<?

$name=$_POST['name'];

$email=$_POST['email'];

$comment=$_POST['comment'];

$to="[email protected]";

$message=" $name sent you a comment on your site.\n They said $story\n\n Their e-mail address was: $email";

if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {

echo "Thanks for your comments! That’s the only way we can improve our site!";

} else {

echo "There was a problem sending your story. Please check that you filled in the form correctly.";

}

?>
 
0
Close
Thanks to both of you for posting. I got it to work finally, and thank you for the information on how to code that in .php.
 
0
Close
Status
Not open for further replies.
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back