Skip to content

Instantly share code, notes, and snippets.

@dryan1144
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dryan1144/fc4cd72562da9e02a35d to your computer and use it in GitHub Desktop.
Save dryan1144/fc4cd72562da9e02a35d to your computer and use it in GitHub Desktop.
Pass a merge list variable from Mailchimp to WordPresss and use it in a template
<?php
if (isset($_GET['firstname'])) { //we have a first name to work with
$firstname = $_GET['firstname'];
echo '<p>Hi '.$firstname.', here is your download.</p>';
} else { //there isn't a first name variable, so decide what to do
echo '<p>Here is your download.</p>';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment