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>'; } Quote Link to comment 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>'; } ?> Quote Link to comment 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 Quote Link to comment 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 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.