PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am trying to force a page to load only when a certain query string is valid and only when the passed value is a certain value. I am using an if statement which works almost completely. The problem I am getting is that the value '0' (the number zero) should not be allowed to load the page. But when I enter it in the query string, the page loads anyway. All other 'unacceptable' values are kicked out and the result is what you would expect when looking at the code. Can someone please tell me what I am doing wrong? Thanks for all your help.