Personalizing a squeeze page

6 replies
I am trying to personalize a squeeze page by passing the first name of my contact through say aweber and have it appear on the squeeze page saying "fname", thanks for...

I have seen it done and would like to know how

Thanks
#aweber #page #personalizing #squeeze
  • Profile picture of the author Brandon Tanner
    Aweber passes that info via the 'GET' method (through the browser's address bar), so you can easily retrieve it with a little bit of PHP.

    First though, you'll need to log into Aweber and do this.

    After you've done that, then simply paste the following code wherever you want the name to appear on your "thankyou" page...

    <?php echo $_GET['name']; ?>

    For example...

    <p>Thank you for subscribing, <?php
    echo $_GET['name']; ?>!</p>

    You'll have to give that page a .php extension, but that's all there is to it.
    Signature

    {{ DiscussionBoard.errors[7490787].message }}
  • Profile picture of the author leemoran
    Awesome! thanks
    {{ DiscussionBoard.errors[7493216].message }}
  • Profile picture of the author Tradeout
    I'd do a few more checks then just using the GET[]!

    This is how sites end up with XSS vulnerability

    .
    {{ DiscussionBoard.errors[7498171].message }}
    • Profile picture of the author Brandon Tanner
      Originally Posted by Tradeout View Post

      I'd do a few more checks then just using the GET[]!

      This is how sites end up with XSS vulnerability

      .
      Good point!

      I guess since we are only dealing with names here, ctype_alpha should suffice...

      <?php if (ctype_alpha($_GET['name'])) { echo $_GET['name']; } ?>
      Signature

      {{ DiscussionBoard.errors[7498616].message }}
      • Profile picture of the author kohashi
        Problem with ctype_alpha is Irish names apostrophies and hyphenated names. I would rather encode it with htmlspecialchars for display from $_GET
        {{ DiscussionBoard.errors[7504477].message }}
  • Profile picture of the author ocaswiz
    I didn't know ctype_alpha before, it seems a great solution. I use htmlspecialchars most of the time and it works fine too.
    {{ DiscussionBoard.errors[7500352].message }}

Trending Topics