Last active
August 29, 2015 14:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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