[!--quoteo(post=377776:date=May 28 2006, 04:01 AM:name=witt)--][div class=\'quotetop\']QUOTE(witt @ May 28 2006, 04:01 AM) [snapback]377776[/snapback][/div][div class=\'quotemain\'][!--quotec--] I basically have a random number created that's sent via GET to another page. So basically page.php is sending rand(00,99) to page2.php and a link such as page2.php?rand=53 is given. On page2.php, the number 53 would have a certain meaning. Now what I want is so that if someone types in page2.php?rand=80, they are redirect to page.php instead of showing page2.php with nothing on it. I don't want to use a database by the way. [/quote] If the purpose you want to do this checking is for security, you might want to create a session of user that is logged in your page. Assign a session id to user when they are logged in. And on every page, check whether session id is empty. If so, just redirect them to page.php. If you just want to make sure the databse have records with the eg.rand=53, on page2.php,simply write a sql to check on the db. If it return a value, proceed wit hyour proces, else redirect user to page.php