Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Directing completed form to email address

Posted by: Carol H Jan 31 2012, 10:25 AM

Below is code that was furnished to me for a contact form on a genealogy website. If, for example, I wanted the completed form to go to xxx@yyy.com when they click the Send button, where would I specify that? Know very little HTML, so pls be specific. Thanks! ~Carol

CODE
<form style="padding-left: 30px;" enctype="application/x-www-form-urlencoded" method="get">
<p><input name="user" type="hidden" value="chornung" /> <input name="action" type="hidden" value="addguest" /> <input name="basehref" type="hidden" value="http://www.chornung.com/MurphyHussey/" /> <input name="template" type="hidden" value="default" /></p>
<p><span style="color: #ab5500;"><em>Your name</em> <br /></span><input style="width: 305px; height: 22px;" name="name" size="78" type="text" /><br /><br /><span style="color: #ab5500;"><em>Email address where we can contact you</em><br /></span><input style="width: 305px; height: 22px;" name="email" size="77" type="text" /><br /><br /><span style="color: #ab5500;"><em>Family or individual of interest<br /></em></span><input style="width: 610px; height: 22px;" name="url" size="78" type="text" /><br /><span style="font-size: small;"><em><span style="color: #ab5500;"><br />Using the ID number that appears just under each person's name on their details page will help us<br />make certain we can tell exactly which individual(s) you are contacting us about<br /></span></em></span></p>
<p><span style="color: #ab5500;"><em>Comments/questions - or just to say Hi!</em></span><br /><textarea style="width: 610px; height: 93px;" cols="65" rows="4" name="comments"></textarea><br /><br /><input style="width: 62px; height: 28px;" size="26" type="submit" value="Send" />   - <span style="color: #006400;">OR -  <em>Click </em><a href="mailto:Support@chornung.com?subject=Murphy-Hussey%20Families%20website%20problem"><em>here</em></a><em> to advise us of a problem with the website itself, such as a broken link.</em></span></p>
<div></div>
</form>
<p> </p>

Posted by: Darin McGrew Jan 31 2012, 03:32 PM

The form has no action attribute, so I'm not sure how it can do anything.

Posted by: pandy Jan 31 2012, 06:25 PM

See http://htmlhelp.com/faq/html/forms.html#form-howto and http://htmlhelp.com/faq/html/forms.html#mailto-form .

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)