Wankness123 Posted December 30, 2011 Share Posted December 30, 2011 <form action='mailto:austinmaroney@live.com' method='POST' enctype='text/html'> <table> <tr> <td>Bobba Name:</td> <td><input type='text'></td> </tr> <tr> <td>Your Name:</td> <td><input type='text'></td> </tr> <tr> <td>Your Age:</td> <td><input type='text'></td> </tr> <tr> <td>Your Email:</td> <td><input type='text'></td> </tr> <tr> <td>Why you?:</td> <td><input type='text'></td> </tr> </table> <center><input type='submit' value='Submit'></center> </form> I tried this and it didnt work?? how can i make it work thanks.! Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/ Share on other sites More sharing options...
AyKay47 Posted December 31, 2011 Share Posted December 31, 2011 I'm going to stick to mjdamato's signature for this one. http://apptools.com/rants/mailto.php Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/#findComment-1302719 Share on other sites More sharing options...
casper_ghost Posted January 2, 2012 Share Posted January 2, 2012 to my understanding using mailto is bad Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/#findComment-1303330 Share on other sites More sharing options...
Zane Posted January 2, 2012 Share Posted January 2, 2012 It most likely doesn't work because your input fields have no name attributes. Moreover, I agree with AyKay and casper, use a PHP script to mail things. Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/#findComment-1303334 Share on other sites More sharing options...
Stiver112 Posted January 5, 2012 Share Posted January 5, 2012 As described above you need to post the data in a variable. That variable needs a name, and the way your form looks right now, none of your input areas have a name... How do your php script look like? Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/#findComment-1304569 Share on other sites More sharing options...
deathadder Posted January 10, 2012 Share Posted January 10, 2012 none of the text fields in your html script above have name attributes instead of just <input type='text'> try something like this <input type='text' name='myname'> although i dont know how it would work becuase you would need an address to send the mail so im not too sure Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/#findComment-1306078 Share on other sites More sharing options...
Sheets Posted January 11, 2012 Share Posted January 11, 2012 The way you are using will only show the input boxes and will not email them. To create a "Click HERE to email me" use the following code: Click <a href=mailto:austinmaroney@live.com>here</a> to email me The way you are using requires a bit of php on the side, but here is a outline on creating the HTML side of the form: <form action="send_mail.php" method='POST' encrypt='text/html'> <table> <tr> <td>Bobba Name:</td> <td><input type="text" name="bobba_name"></td> </tr> <tr> <td>Your Name:</td> <td><input type="text" name="your_name"></td> </tr> <tr> <td>Your Age:</td> <td><input type="text" name="your_age"></td> </tr> <tr> <td>Your Email:</td> <td><input type="text" name="your_email"></td> </tr> <tr> <td>Why you?:</td> <td><input type="text" name="why_you"></td> </tr> </table> <center><input type="submit" value="Submit"></center> </form> If there is a spelling issue, my bad ;P Quote Link to comment https://forums.phpfreaks.com/topic/254097-help-with-html-email-form/#findComment-1306298 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.