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>&nbsp;</td> <td><p> <input type="submit" name="submit" id="submit" value="Su +bmit" /> &nbsp;&nbsp; <input type="reset" name="Reset" id="button" value="Reset" + /></p></td> </tr> </table> </form>

Thanks for your help!


In reply to Send my website form data via email by flyingskibiker

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.