Created
March 30, 2009 07:29
-
-
Save randyjhunt/87674 to your computer and use it in GitHub Desktop.
Get variable from URL
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
| <?php // get the value of "variable" from the URL | |
| $val = $_GET['variable']; | |
| ?> | |
| <?php | |
| if ( $val == "yeah" ) { | |
| echo "the variable is YEAH!"; | |
| } ?> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment