HTML form to Email
3 posts
Page 1 of 1
Hey guys! I was wondering if there's a way to create an HTML form that has input boxes for things such as "Name", "Comment", ect and once you press send, I receive an email that has the information they put.
It should send directly from the webpage, not redirect them to gmail or yahoo. I just can't seem to figure it out! Thank you!
It should send directly from the webpage, not redirect them to gmail or yahoo. I just can't seem to figure it out! Thank you!
Hey there #astheyfall
By itself, HTML cannot send an email. HTML can be used to build the form that can be filled in by the user but you will need a server side script to send an email.
Generally, what I do is use HTML to make my form and validate it (make sure it's filled in etc.) and then use PHP which uses the mail(); function.
If you want to use PHP (You will need a server, locally you can use something like Xampp) here is a link to the function:
http://www.w3schools.com/php/func_mail_mail.asp
If you need more help using PHP to send an email let me know,
If I've helped you be sure to give me a +rep
Thanks
By itself, HTML cannot send an email. HTML can be used to build the form that can be filled in by the user but you will need a server side script to send an email.
Generally, what I do is use HTML to make my form and validate it (make sure it's filled in etc.) and then use PHP which uses the mail(); function.
If you want to use PHP (You will need a server, locally you can use something like Xampp) here is a link to the function:
http://www.w3schools.com/php/func_mail_mail.asp
If you need more help using PHP to send an email let me know,
If I've helped you be sure to give me a +rep

Thanks
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
Hey #astheyfall,
Well as #smashapps correctly pointed out, you can't JUST use HTML; however, you CAN use PHP with Ajax so the user is on the same page.
PM me for the code
Well as #smashapps correctly pointed out, you can't JUST use HTML; however, you CAN use PHP with Ajax so the user is on the same page.
PM me for the code

3 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023