1

Html Help please

bio 12/20/13 8:12 pm
350
12/28/2013 4:57 pm
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&amp;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?
Posted by
bio
Retired Moderator
Level 51 : Grandmaster Answer Writer
796

  Have something to say?

JoinSign in

9

bio
12/28/2013 4:57 pm
She/Her • Level 51 : Grandmaster Answer Writer
thank you all
1
planetminecrafter52342
12/21/2013 6:44 am
Level 17 : Journeyman Zombie
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&amp;body=?">
(form stuff)
<input type="submit">
</form>

Then the php script to take that form and send it to that email with mail()
1
Area511
12/21/2013 6:34 am
Level 23 : Expert System
make sure your server supports PHP.

I know lots of free hosting out there don't support PHP.
1
sycoinc
12/21/2013 6:26 am
Level 58 : Grandmaster Programmer
have a read fo this it is a simple php script and form on w3schools

http://www.w3schools.com/php/php_mail.asp
1
bmanrules
12/20/2013 8:49 pm
Level 57 : Grandmaster Programmer
Google is your friend Running PHP from HTML will help you a lot in future websites
1
bio
12/20/2013 8:21 pm
She/Her • Level 51 : Grandmaster Answer Writer
wait nevermind How would I use this?
I don't use php
1
SpongyBacon
12/21/2013 6:12 am
Level 35 : Artisan Princess
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>
1
bio
12/20/2013 8:20 pm
She/Her • Level 51 : Grandmaster Answer Writer
thanks
1
DeleteThisPleaseThan
12/20/2013 8:16 pm
Level 19 : Journeyman Wolf Whisperer
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&amp;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
1

Welcome