NameSilo

HTML Email Forms

Spacemail by SpaceshipSpacemail by Spaceship
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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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
•••
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
•••
Status
Not open for further replies.
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back