So I just created an online application form for my site and I can't figure out how to make the submit button send an email with the fields input
here's the code:
<button> <a href="mailto:youremail@domain.com?subject=Title of subject&body=?">Submit</a></button>
My question is what do I put in place of the question mark to send an email with the information from the form?
here's the code:
<button> <a href="mailto:youremail@domain.com?subject=Title of subject&body=?">Submit</a></button>
My question is what do I put in place of the question mark to send an email with the information from the form?
9
thank you all
I develop php websites almost all the time, basically you would need the form.
Also when submitting a form do not use <a href> to send it, do as follows:
<form action="domain.com?subject=Title of subject&body=?">
(form stuff)
<input type="submit">
</form>
Then the php script to take that form and send it to that email with mail()
Also when submitting a form do not use <a href> to send it, do as follows:
<form action="domain.com?subject=Title of subject&body=?">
(form stuff)
<input type="submit">
</form>
Then the php script to take that form and send it to that email with mail()
make sure your server supports PHP.
I know lots of free hosting out there don't support PHP.
I know lots of free hosting out there don't support PHP.
have a read fo this it is a simple php script and form on w3schools
http://www.w3schools.com/php/php_mail.asp
http://www.w3schools.com/php/php_mail.asp
Google is your friend Running PHP from HTML will help you a lot in future websites
wait nevermind How would I use this?
I don't use php
I don't use php
Thing is, php is rather complicated compared to html. I'd highly reccomend looking at the tutorials from w3schools, then just play around with it until it works nicely (Thats what I did!).
Or, just make a new google drive form, and then use the iframe tag to imbed it in your site, and set notifications on google drive to email you when someone submits a form!
<iframe src="your-google-form-url" height="750px" width="800px">Some message if iframes don't work for them, maybe include the direct link to the form.</iframe>
Or, just make a new google drive form, and then use the iframe tag to imbed it in your site, and set notifications on google drive to email you when someone submits a form!
<iframe src="your-google-form-url" height="750px" width="800px">Some message if iframes don't work for them, maybe include the direct link to the form.</iframe>
thanks
BIOhazard_incSo I just created an online application form for my site and I can't figure out how to make the submit button send an email with the fields input
here's the code:
<button> <a href="mailto:youremail@domain.com?subject=Title of subject&body=?">Submit</a></button>
My question is what do I put in place of the question mark to send an email with the information from the form?
You cannot achieve that in html, sending data to your email would require PHP.
http://php.net/manual/en/function.mail.php
