Latest Lists

Need to Combine Contact Form and Newsletter Signup?

Hello I am looking to do 2 things with my contact form code, I am somewhat comfortable with working with these forms, but have hit some road blocks in my learning, here they are; 1. Combine my dadamailproject newsletter signup and my contact form so that when they hit submit, it "posts" the form via webformmailer.php to me as well as "posts" the email address to the dadamailproject /mail.cgi Here is the dadamailproject newsletter code, see the contact form below #2 <form action="http://www.xxxxxxxxxxxxxxx.com/cgi-bin/dada/mail.cgi" method="post"> <fieldset> <h2> <legend> Newsletter Signup</legend> </h2> <input type="hidden" name="list" value="newsletter" /> <p> <label for="email" style="width: 7em;float: left;text-align: right;margin-right: 0.5em;display: block" > Email Address:</label> <input type="text" name="email" id="email" value="" /> </p> <p> <label for="f_s" style="width: 7em;float: left;text-align: right;margin-right: 0.5em;display: block"> Subscribe </label> <input type="radio" name="f" id="f_s" value="subscribe" checked="checked" /> <p> <p> <input type="submit" value="Submit Your Information" class="processing" /> </p> <p style="font-size:10px;font-family:Verdana,Arial,sans-serif;"><a href="http://dadamailproject.com" target="_blank" rel="nofollow" style="font-size:10px;font-family:Verdana,Arial,sans-serif;">Powered by Dada Mail 3.0.3 Stable Mailing List Manager</a></p> </fieldset> </form> 2. When the contact form is sent to me, has too much info, for example; Name: Boy George Address: 453 Manor Pl submit: submit I only want the info entered to be seen on the email, so i can print it out onto an envelope easier, for example; Boy George 453 Manor Pl What do I need to change on my code? Here is the the code for the contact form; <form action="webformmailer.php" method="post" class="style2"> <p> <input type="hidden" name="subject" value="Brochure Request" /> <input type="hidden" name="redirect" value="Brochure_Request_Thank_You.html" /> Name:<input name="Name" type="text" size="40" /> Address: <input name="Address" type="text" size="40" /> <input type="submit" name="submit" value="submit"/> </form> Would any of these do anything? <input type="hidden" name="form_order" value="csv"/> <input type="hidden" name="form_delivery" value="hourly"/> <input type="hidden" name="form_format" value="default"/> Thanks so much. Dave

Public Comments

  1. 1) Submit to a php file that does both functions. (I have no idea what mai;.cgi does - but you don't need a cgi file, just do it all in the php file.) 2) What gets mailed to you is determined by webformmailer.php. Have it email you what you want.
Powered by Yahoo! Answers