+ 1

How does one link the submit button to his email account

when the user types in a message and clicks submit the message is supposed to be sent to the webmasters email address....how does the webmaster do this

18th Jun 2017, 6:11 AM
jared bada
1 Resposta
+ 1
<form method=post Enctype="text/plain"> .. input fields . . . . <input type="submit" name="submit" value="Send"> now create a php file and write if(isset($_POST["submit"])) { //Remember to do input validations $subject = $_POST["subject"]; $from = $_POST["email"]; $comment = $_POST["comment"]; $body = "User with email $from send the next comment: $comment"; //then here you set your email $to = "myemail@email.com"; //change this mail ($to,$subject,$body); }
18th Jun 2017, 11:28 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar