Pyro4816 Posted April 4, 2007 Share Posted April 4, 2007 I am working on error handeling for a script, and i am working on what to display if no number is given. in the link: http://www.codedunderground.com/view/article.php?view= what is the variable $_GET['view'] ? i tried using this if( $_GET['view'] != ""){ echo 'bla bla bla'; }else{ echo '<center><b><h3>The content you have requested cannot be found.</h3></b></center>'; } Link to comment https://forums.phpfreaks.com/topic/45497-quick-question/ Share on other sites More sharing options...
trq Posted April 4, 2007 Share Posted April 4, 2007 Your question is pretty vague, heres a guess as to what your after. <?php if (!isset($_GET['view']))) { echo 'bla bla bla'; } else { echo '<center><b><h3>The content you have requested cannot be found.</h3></b></center>'; } ?> Link to comment https://forums.phpfreaks.com/topic/45497-quick-question/#findComment-220926 Share on other sites More sharing options...
Pyro4816 Posted April 4, 2007 Author Share Posted April 4, 2007 that doesn't work, apparently the variable is set, its just not set to anything Link to comment https://forums.phpfreaks.com/topic/45497-quick-question/#findComment-220932 Share on other sites More sharing options...
Pyro4816 Posted April 4, 2007 Author Share Posted April 4, 2007 it had something to do with another script i was using, ty Link to comment https://forums.phpfreaks.com/topic/45497-quick-question/#findComment-220937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.