How do you pass Aweber form data to another form in the following thank-you page after optining in?

by Jag82
9 replies
Dear programming gods,

I've got a question for you.

It's like this...I've got the following leads generation
process:

Landing page with Aweber opt in form => thank-you page with a separate contact form

Using the "pass subscriber info" tip I found her
(How Do I Pass Form Data to My Thank You Pages? :: AWeber Knowledge Base)
and here:
(How Do I Display Subscribers' Names or Email Addresses On My Thank You Page? :: AWeber Knowledge Base)
...I manage to get the subscriber name and emails to appear
on the thank you page....

BUT...BUT...

...I wasn't able to pass the subscriber data to pre-populate
a contact form I had on the thank you page which
I wanted the subscriber to fill up?

Since Aweber personalization code is a javascript,
how do I insert it into the form fields?

I've been trying to figure this out, but have ran into a brick
wall. Can any kind Warrior soul help me out here?

Thanks a lot in advance for your kind assistance.

Warmly,
Jag
#aweber #data #form #optining #page #pass #thankyou
  • Profile picture of the author stubbs
    In PHP, you can save the data and recall it on another form (still on the webserver; same website; same process) by storing the data in sessions, passing it via $_GET, storing it into a variable, etc. If I were you, I would create a $_SESSION array called $_SESSION['TMP'] and use it to store all your information, then on the secondary contact form have the input of the stored session echoed back into the page...

    IE... <?php echo $_SESSION['TMP']['first_name']; ?>

    I hope this helps, bro!
    {{ DiscussionBoard.errors[2779981].message }}
  • Profile picture of the author mywebwork
    Originally Posted by Jag82 View Post


    Since Aweber personalization code is a javascript,
    how do I insert it into the form fields?
    Just a stab in the dark Jag, but you have the option with AWeber of using either JavaScript or HTML versions of the form, so why not use the HTML one instead?

    Should be easier to pre-populate that.

    Bill
    {{ DiscussionBoard.errors[2780025].message }}
    • Profile picture of the author Jag82
      Thanks Stubbs and Bill for your reply.

      Bill:

      I'm using the javascript version of the form. I don't think
      the HTML version makes any difference though. Because
      the form works well whether it's HTML or javascript.

      The problem I'm facing is how to pass the opted in
      subscriber data to the next form I have in the "thank you"
      page.


      Bill, Stubbs:

      This is a sample of the "Thank you" page after
      the subscriber has opted in via the aweber form:
      http://emoneymarketing.com/MailForm.html


      The page has the following javascript tags (taken
      from Aweber support page) on the thank you page:
      <script type="text/javascript">formData.display("name")</script>
      <script type="text/javascript">formData.display("email")</script>

      The subscriber name and email appear when I put
      the codes in the HTML page.

      However when I try to insert it as the "initial
      value" within the form (name and email fields),
      it just wouldn't work.

      I know I must have done something wrong.

      Stubbs,

      Your pointer sound like it could work, but unfortunately
      I'm a technical dummy.

      If it's okay with you, can you help me list out
      in step by step fashion? Or just simply a way on how
      to insert the javascript tag into the form field
      in the right manner (is that possible) will be of great
      help to me.

      Anyway, thanks guys for all your help!

      Warmly,
      Jag
      {{ DiscussionBoard.errors[2783329].message }}
      • Profile picture of the author Brandon Tanner
        Hey Jag,

        Aweber passes that info via the 'GET' method (through the browser's address bar), so it can be retrieved with any scripting language. For this particular task, I'm most familiar with the PHP method...

        1) Put this code in the very beginning of that page (before the HTML)...

        <?php $name=$_GET['name']; $email=$_GET['email']; ?>


        2) Now in the HTML section where your forms are, do something like this...

        <form>
        <label>Name:</label><input type="text" value="<?php echo $name; ?>" />
        <br />
        <label>Email:</label><input type="text" value="<?php echo $email; ?>" />

        <br />
        <input type="submit" value="Submit" />
        </form>

        You'll have to give that page a .php extension, of course, but that's pretty much all there is to it.

        Hope this helps!
        Signature

        {{ DiscussionBoard.errors[2786268].message }}
  • Profile picture of the author Jag82
    Brandon!

    You are the man! THE MAN!

    Thanks a million! Your tip works like a real charm.

    Thanks so much. If I can ever be of help to you,
    please feel free to let me know.

    Thanks again Brandon, and to Bill and Stubbs too. =)

    Warmly,
    Jag
    {{ DiscussionBoard.errors[2787444].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by Jag82 View Post

      Brandon!

      You are the man! THE MAN!

      Thanks a million! Your tip works like a real charm.

      Thanks so much. If I can ever be of help to you,
      please feel free to let me know.

      Thanks again Brandon, and to Bill and Stubbs too. =)

      Warmly,
      Jag
      No worries Jag, you're very welcome!
      Signature

      {{ DiscussionBoard.errors[2788172].message }}
      • Profile picture of the author arrenv
        Oh wow, spent ages trying to find a solution to this!!

        Thanks Brandon!!!!
        {{ DiscussionBoard.errors[3630077].message }}
  • Profile picture of the author multimastery
    @Brandon (couldn't reply with quote so I'll just try regular).

    Thanks for this info. So if using wordpress would I need to change the page extension to .php there - or would I do that through my web host control panel?
    {{ DiscussionBoard.errors[7451156].message }}
  • Profile picture of the author dmeirx
    hey Brandon thanks for the info you are great
    {{ DiscussionBoard.errors[8304044].message }}

Trending Topics