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 Link to comment https://forums.phpfreaks.com/topic/102136-solved-_get-with-no-input-provided/ 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 Link to comment https://forums.phpfreaks.com/topic/102136-solved-_get-with-no-input-provided/#findComment-522801 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 Link to comment https://forums.phpfreaks.com/topic/102136-solved-_get-with-no-input-provided/#findComment-522803 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 Link to comment https://forums.phpfreaks.com/topic/102136-solved-_get-with-no-input-provided/#findComment-522807 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.