Hunter94 Posted January 21, 2009 Share Posted January 21, 2009 Is there a way I could make a form so when people submit it, it sends the form they filled out to my email? Heres what kind of code I'm talking about. (Oh and if there is a code for my question please post it so I can add it.) <form action="/html/tags/html_form_tag_action.cfm" method="get"> <table> <tr> <td>First name:</td> <td> <input type="text" name="first_name" value="" maxlength="100" /> </td> </tr> <tr> <td>Lunch:</td> <td> <input type="radio" name="lunch" value="pasta" /> Pasta <input type="radio" name="lunch" value="rissotto" /> Rissotto </td> </tr> <tr><td>Drinks:</td> <td> <input type="checkbox" name="drinks" value="beer" /> Beer <input type="checkbox" name="drinks" value="wine" /> Wine </td> </tr> <tr><td>Preferred City:</td> <td> <select> <option value ="sydney">Sydney</option> <option value ="melbourne">Melbourne</option> <option value ="cromwell">Cromwell</option> <option value ="queenstown">Queenstown</option> </select> </td> </tr> <tr> <td>Comments:</td> <td> <textarea rows="3" cols="20"></textarea> </td> </tr> <tr><td> </td> <td> <input type="submit" value="Submit" /> </td> </tr> </table> Quote Link to comment https://forums.phpfreaks.com/topic/141679-form-help/ Share on other sites More sharing options...
haku Posted January 21, 2009 Share Posted January 21, 2009 There is, but it can't be done purely in HTML, it needs a server-side language (i.e. php) to be able to do this. Quote Link to comment https://forums.phpfreaks.com/topic/141679-form-help/#findComment-741712 Share on other sites More sharing options...
noober Posted January 21, 2009 Share Posted January 21, 2009 It's probably one of the more simple php things to do imo. Just give "php email form" a google. Quote Link to comment https://forums.phpfreaks.com/topic/141679-form-help/#findComment-742023 Share on other sites More sharing options...
aznkidzx Posted January 27, 2009 Share Posted January 27, 2009 You need PHP code. I'd recommend http://www.phpjabbers.com/make-contact-form-and-send-email-in-php-php21.html . I use it for my website and it works fine Quote Link to comment https://forums.phpfreaks.com/topic/141679-form-help/#findComment-747107 Share on other sites More sharing options...
Sudden Posted January 27, 2009 Share Posted January 27, 2009 Yup with php its quite simple...but you will need a website w/ a server that supports it. Make sure you have that before writing the script Quote Link to comment https://forums.phpfreaks.com/topic/141679-form-help/#findComment-747163 Share on other sites More sharing options...
jcombs_31 Posted January 28, 2009 Share Posted January 28, 2009 Based on your form it appears you are using coldfusion which you should also be able to use to send the form. Did you try a google search for coldfusion email? Quote Link to comment https://forums.phpfreaks.com/topic/141679-form-help/#findComment-748800 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.