flyingskibiker has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to write a script/cgi that will take the form data from my website and send it in an email. I don't want to use the typical "mailto" HTML tag to do it. I want to kind of remain anonymous and do it in the background... I am using DreamWeaver to create my "Contact Us" page. I am using the Form tag with a Submit button. There are only 4 fields: First Name, Last Name, email, and Message. I have my website on Go Daddy. So, I may have to get some mail server info from them.?.? Or maybe the path to Perl? Here is the code from my webpage:
<form id="form1" name="form1" method="post" action="scripts/form.pl"> <table width="436" border="0" align="center" cellpadding="0" c +ellspacing="0" id="contactUs"> <tr> <td width="94">First Name</td> <td width="318"> <p> <input name="firstName" type="text" id="firstName" siz +e="20" maxlength="20" /> </p></td> </tr> <tr> <td>Last Name</td> <td><p><input name="lastName" type="text" id="lastName" si +ze="20" maxlength="20" /></p></td> </tr> <tr> <td>e-mail</td> <td><p><input name="email" type="text" id="email" value="N +ot working yet... Sorry" size="50" maxlength="50" /></p></td> </tr> <tr> <td>Message</td> <td><p><textarea name="message" id="message" cols="50" row +s="5"></textarea></p></td> </tr> <tr> <td> </td> <td><p> <input type="submit" name="submit" id="submit" value="Su +bmit" /> <input type="reset" name="Reset" id="button" value="Reset" + /></p></td> </tr> </table> </form>
Thanks for your help!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Send my website form data via email
by davido (Cardinal) on Apr 21, 2013 at 14:43 UTC | |
|
Re: Send my website form data via email
by CountZero (Bishop) on Apr 21, 2013 at 19:41 UTC | |
|
Re: Send my website form data via email
by flyingskibiker (Initiate) on Apr 21, 2013 at 22:09 UTC | |
|
Re: Send my website form data via email
by mbethke (Hermit) on Apr 21, 2013 at 17:08 UTC |