Last active
January 29, 2016 16:02
-
-
Save brs14ku/77a2fb453b47ae65c248 to your computer and use it in GitHub Desktop.
session and GET
This file contains hidden or 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
if ( ( isset( $_GET['utm_medium'] ) && $_GET['utm_medium'] == 'pc' ) || ( isset( $_SESSION['utm_medium'] ) && $_SESSION['utm_medium'] == 'pc' ) { | |
$my_div = '<div class="A">THIS IS A</div>'; | |
} else { | |
$my_div = '<div class="B">THIS IS B</div>'; | |
} | |
echo $my_div; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment