url - How to make it so a PHP page is directed to the same page but with different variables -
well have calendar , add links bottom have different months -1
month , +1
month on either ends. know need use $_get method in order have specific url. however, i'm not sure need in order have page know when has specific url.
right ../index.php
url. , if try make extension index.php?day=02&month=01&year=2014
displays default page. how make if user hardcode different month or year in url, direct them correct calendar month.
something like:
<?php $day = htmlspecialchars($_get['day']); $month = htmlspecialchars($_get['month']); $year = htmlspecialchars($_get['year']); if ($year == 2014) { echo $day . $month . $year . " - special year page! (would idea include here maybe?"; } ?>
that should give ideas how can achieve trying do.
Comments
Post a Comment