unidox Posted July 18, 2007 Share Posted July 18, 2007 Is it possible to have an if ($_REQUEST so like you go: index.php?id= the month minus the day and whatnot Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 18, 2007 Share Posted July 18, 2007 I don't understand what your trying to say at all. What are you wanting to do with the if statement? Quote Link to comment Share on other sites More sharing options...
unidox Posted July 18, 2007 Author Share Posted July 18, 2007 Like, I saw this one site, that to get to the admin panel, you had to subtract the day from the year. I was just wondering how you can do that Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 18, 2007 Share Posted July 18, 2007 I guess you could do something like this: <?php $id = $_GET['id']; $day = date("d"); $year = date("Y"); //subtract day from year $final = $year - $day; if ($id == $final){ echo "You are allowed in the admin panel"; } else { echo "You are NOT allowed"; } ?> 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.