+ 1

How do I make the contact form submit and send to my email address?

I am about to finish my first project and I have a contact form in html and css and I need the message a person writes to me to be sent to my email address.

14th Aug 2018, 10:06 AM
Caitlyn
Caitlyn - avatar
4 odpowiedzi
+ 2
Hi Caitlyn, You can use the action to call out a external file after submition. <form action="external file to execute after submit" method="post" > <input /> <input required/> <input /> </form> this will do a action when the user inputs their info and submits it, the input can be mailed to you U can use PHP to send mail() after the user submitted the form https://secure.php.net/manual/en/function.mail.php https://www.w3schools.com/php/func_mail_mail.asp I hope this will help you to complete your project.
14th Aug 2018, 10:30 AM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
0
Great thanks I'll have a look at that
14th Aug 2018, 10:38 AM
Caitlyn
Caitlyn - avatar
0
Caitlyn, if you dont fully understand form handling here is a great explaination to it. https://www.w3schools.com/php/php_forms.asp
14th Aug 2018, 12:27 PM
🌴Vincent Berger🌴
🌴Vincent Berger🌴 - avatar
0
Vincent Berger thank you
14th Aug 2018, 12:30 PM
Caitlyn
Caitlyn - avatar