Mordax Praetorian Posted April 21, 2008 Share Posted April 21, 2008 I need to know what $_GET will return when called without input (i.e. there is nothing related to that in the URL) specificly, I need to use if/elseif etc where one of the elses is that that $_GET was not specified in the URL.... or anywhere at all for that matter Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted April 21, 2008 Share Posted April 21, 2008 print_r($_GET); and you can make a decision for your self Quote Link to comment Share on other sites More sharing options...
craygo Posted April 21, 2008 Share Posted April 21, 2008 if(isset($_GET['var'])){ // enter code if it is set } else { // enter code if not set } If there is nothing there you will receive an Undefined index: error. Ray Quote Link to comment Share on other sites More sharing options...
Mordax Praetorian Posted April 21, 2008 Author Share Posted April 21, 2008 thanks, isset was exactly what I needed Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.