- First off I want to make you aware of something that could possibly be abused in your logic.
-
I would like to send the info directly to that site or whoever so the user ticked when they signed up
This sets your form up for possible abuse. Say I didn't like my coworker and I filed out the form a bunch of times with his address and checked the box. Next thing he knows he is getting spammed from everywhere. You should make sure that you have a database to compare with so the user doesn't get submitted multiple times. Or better yet, send a comfirmation email to the email address submitted and have the owner of the email address just reply, if they truely want the promotional emails
- You also need to make sure that there is a very easy way for the users to be able to remove their name off the list.
In addition to the LWP and HTTP modules I could easily see doing some of this work with Net::Mail.
Please remember that no one likes spam!
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.