+ 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.
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.
0
Great thanks I'll have a look at that
0
Caitlyn, if you dont fully understand form handling here is a great explaination to it.
https://www.w3schools.com/php/php_forms.asp
0
Vincent Berger thank you