• Log in or sign up for an account here: https://www.sythe.org/login

[PHP] Contact form

  • Thread starter Thread starter Fagex_SantaClaus
  • Start date Start date
F

Fagex_SantaClaus

Guest
[PHP] Contact form
create a .php file with this code and your modifications.
call it email.php for example:

PHP:
<?php
if (($name) && ($mail) && ($subject) && ($message) && ($submit)) {
$youremail = "[email protected]";
mail($youremail,$subject,$message,"From: $mailrnReply-To: $mailrn");
echo "E-Mail was sent correctly
";
}
?>



this is the form. you should paste this code in the place you wish over your page.
PHP:
<form method="post"
action="email.php"><br>
<input type="text" name="NAME"
value="Your name"><br><br>
<input type="text" name="EMAIL"
value="Your e-mail"><br><br>
<input type="text" name="SUBJECT"
value="The subject"><br><br>
<input type="text" name="MESSAGE"
value="Message"><br><br>
<input type="submit" value="Send"
name="submit" style="font-family: Trebuchet MS"><br>
</form>

It does not give the email address of the sender.
 
[PHP] Contact form
It's good but not solid. Your bettter off forwarding to more than one address and saving all of the info to a database also.
 
Runescape Gamblingrunescape gambling
Back
Top