Using Autoresponder Get Variables - To preload content

8 replies
Hi guys

I've been trying to figure out how to pass get variables using Getresponse to my confirmation page. I can't seem to find the solution and I'll be stoked if someone could shed some light

After my opt-in page, I send the user to a confirmation page (the tell-a-friend script). They have to enter their name and email address again + email of 2 other friends to get a bonus

Now, how do I use "get variables" to preload the confirmation page with the email and names of the subscriber so that he/she don't have to fill it that part of the form again?

I can't seem to find the code that needs to be entered in the html page

Could anyone shed some light?

Thanks. Appreciate it
Zack
#autoresponder #content #preload #variables
  • Profile picture of the author Dennis Cheesman
    Hello Zack,

    Here is the code to add to the thankyou page:
    <?=$_GET['name'];?>

    Replace name with whatever your optin name code is.

    Dennis


    Originally Posted by bluesguy View Post

    Hi guys

    I've been trying to figure out how to pass get variables using Getresponse to my confirmation page. I can't seem to find the solution and I'll be stoked if someone could shed some light

    After my opt-in page, I send the user to a confirmation page (the tell-a-friend script). They have to enter their name and email address again + email of 2 other friends to get a bonus

    Now, how do I use "get variables" to preload the confirmation page with the email and names of the subscriber so that he/she don't have to fill it that part of the form again?

    I can't seem to find the code that needs to be entered in the html page

    Could anyone shed some light?

    Thanks. Appreciate it
    Zack
    {{ DiscussionBoard.errors[206097].message }}
  • Profile picture of the author bluesguy
    Thanks Dennis

    Must the thank you page be in php? or can it be in HTML? Can't seem to get it to show ...
    Signature
    *** Calling All Music or Guitar Niche Affiliates ***
    50 Killer Blues Backing Tracks - Heroic Conversions with Great Salespage
    Payout of 75% + OTOs and Backend Upsells - Blues Music Affiliate Program
    {{ DiscussionBoard.errors[206138].message }}
  • Profile picture of the author cullenpowell
    <?php $_GET['name']; ?>

    Give the page containing the above code a .php extension

    Alternatively you can parse PHP in a page with a .html extension by adding the following line to your .htaccess file:

    AddType application/x-httpd-php .html
    {{ DiscussionBoard.errors[206191].message }}
    • Profile picture of the author Dennis Cheesman
      Yep Cullen is right.. sorry I forgot to mention that

      Also, you have to have the pass variables on I believe..

      Dennis
      {{ DiscussionBoard.errors[206211].message }}
  • Profile picture of the author Keegahn
    <?php $email = $_GET["email"]; $name = $_GET["name"]; ?>

    At the top of your confirmation page (should be .php). Then for their respective input boxes, change the "value" to:

    <?php echo $email; ?>

    And...

    <?php echo $name; ?>
    {{ DiscussionBoard.errors[206438].message }}
  • Profile picture of the author bluesguy
    Dennis,cullenpowell and keegahn

    Thanks for taking the time to help

    I know I am passing variables correctly as I see this in my url:
    www.50blues dot com/tellafriendfreegift.html?email=xxx@gmail.com&name= xxx&ip=xx.xx.xxx.xxx&site=submit

    The problem is I don't know where to edit the code in my input boxes

    The HTML code for my input boxes are:

    <font face="Arial" style="font-size: 10pt; font-style:normal" color="#000000">Your
    Name: </font> <input name="member_name" id="member_name">

    and

    <font face="Arial" style="font-size: 10pt; font-style:normal" color="#000000">
    Your Email: </font> <input name="member_email" id="member_email">

    What should I change or remove to enter <?php $_GET['name']; ?>

    or <?php echo $email; ?> (as what keegahn suggested)

    Appreciate any help. I've been pulling out my hair over this for the past couple of nights. Apparently, I suck at PHP :<

    Zack
    Signature
    *** Calling All Music or Guitar Niche Affiliates ***
    50 Killer Blues Backing Tracks - Heroic Conversions with Great Salespage
    Payout of 75% + OTOs and Backend Upsells - Blues Music Affiliate Program
    {{ DiscussionBoard.errors[207757].message }}
  • Profile picture of the author Keegahn
    "tellafriendfreegift.html" needs to be changed to "tellafriendfreegift.php" and you need the following code at the very top of that page:

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

    Look at this part of the URL after the form has been submitted: ?email=xxx@gmail.com&name= xxx

    The PHP code above (what you'll be placing at the top of your page) "gets" the value of "email" from the URL and sets it as a variable ($email) - same goes for the value of "name" using a different variable ($name).

    Now you change the input fields to echo the variables for the "value", like so:

    <font face="Arial" style="font-size: 10pt; font-style:normal" color="#000000">Your
    Name: </font> <input name="member_name" id="member_name" value="<?php echo $name; ?>">

    And...

    <font face="Arial" style="font-size: 10pt; font-style:normal" color="#000000">
    Your Email: </font> <input name="member_email" id="member_email" value="<?php echo $email; ?>">

    This echos (or prints) the contents of the variable, which you defined earlier (to "get" the values from the address)! You place this within the "value" part of the textbox because value = what's in the text box!

    If you're looking to learn HTML/PHP I encourage you to spend a lot of time reading up on php.net and w3schools.com - great resources!
    {{ DiscussionBoard.errors[208006].message }}
  • Profile picture of the author bluesguy
    Thanks Keegahn. You're a savior
    Signature
    *** Calling All Music or Guitar Niche Affiliates ***
    50 Killer Blues Backing Tracks - Heroic Conversions with Great Salespage
    Payout of 75% + OTOs and Backend Upsells - Blues Music Affiliate Program
    {{ DiscussionBoard.errors[208069].message }}

Trending Topics