Personalizing a squeeze page

by 6 replies
7
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
#programming #aweber #page #personalizing #squeeze
  • 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.
  • Awesome! thanks
  • I'd do a few more checks then just using the GET[]!

    This is how sites end up with XSS vulnerability

    .
    • [1] reply
    • 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']; } ?>
      • [ 1 ] Thanks
      • [1] reply
  • I didn't know ctype_alpha before, it seems a great solution. I use htmlspecialchars most of the time and it works fine too.

Next Topics on Trending Feed

  • 7

    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