need help in integrating form code

by 9 replies
11
Hi,

Im collecting name email from user, additionally there will be one drop down with 3 choices, based on the dropdown selection user has to be routed to particular list. Say each choice has each list associated with it.

Based on dropdown selection the name and email should be passed to the list.

cat, dog, rabbit... based on selection name and email id should be passed to cat, dog rabbit list...

Struggling to accomplish.

can anyone help?

Thanks a lot!!!

P.S: all the micro sites are not helpful when needed!! need to wait for replies

P.P.S: THIS IS NOT WITH AWEBER.
#programming #autoresponder #code #form #integrating
  • After form submission you should have 3 fields (name, email, list selection.) Have a field in the database called list_selection or whatever, and store the choice in there. When you retrieve the list for mailing, the field will tell you which newsletter to mail.
    • [ 1 ] Thanks
    • [1] reply

    • Im using third party autoresponders. Im using trafficwave.net here...so i dont think storing in database works?

      thanks.
      • [1] reply
  • You have to be careful with this because you'll quickly run into trouble with your autoresponder company.

    The only viable way to do it is to use javascript to manipulate the "action" address of the form after the user has chosen the dropdown.

    If you send the form to another page for processing by PHP (to check the form field value) you'll have to send the form to the A/R by either a javascript submit event or via curl, both of which will get flagged at the a/r as invalid submissions - because the USER didn't push the final button.
    • [ 1 ] Thanks
    • [1] reply
    • I did not understand the trouble involved in it. Basically im running 4-5 campaigns. To make it easier for user to select his choice.

      if not it will look like,

      if option a: give name and email in this form 1
      if option b: give name and email in this form 2
      if option c: give name and email in this form 3

      i dont want to have three forms in one page!!!

      thank you.
  • If I'm understanding your request, you would actually just change the field type where your autoresponder campaign is specified and create the options. The form data should be pushed through to which ever list is selected.

    You'll want to be sure that each campaign is set up to capture the same data in the same format to avoid any issues there.

    In your TrafficWave.net form code, you want to look for the line that looks like this:

    (input type=hidden name="series" value="form1")

    Change the type and create the pulldown options to list the campaigns you want them to choose from and you should be good to go.

Next Topics on Trending Feed

  • 11

    Hi, Im collecting name email from user, additionally there will be one drop down with 3 choices, based on the dropdown selection user has to be routed to particular list. Say each choice has each list associated with it.