Hi all,
im trying to make a system where u have 1 page and as soon as u go on that page, it checks to see what the month is and will redirect (or simmler) to the unique page.
i.e,
January = page1.php
Febuary = page2.php
etc...
Thanks in advance![]()
Hi all,
im trying to make a system where u have 1 page and as soon as u go on that page, it checks to see what the month is and will redirect (or simmler) to the unique page.
i.e,
January = page1.php
Febuary = page2.php
etc...
Thanks in advance![]()
This should do it assuming you have the pages named page1.php through page12.php.
PHP Code:<?php
$month = date('n');
header("Location: page" . $month . ".php");
?>
Corrections to my coding/thoughts welcome.
Bookmarks