FN-FORUM: password expiry date check
date posted 7th August 2004 13:03
Hi all,
Last job for the day before I crack open the wine for the afternoon,
and I'm damn thirsty now.
So anyone that can be a pal and let me go indulge (note the spelling) :)
my alcoholic bent by giving me a push with this little bit of code would
be much appreciated.
I'm trying to do a simple redirect, if the expiry date >= today
I'm a whisker away from getting it working, but it doesn't
seem to be doing the simple math it always goes to the 'out-of-date' url
no matter what I set the expiry date too.
$today = date("d/m/y");
$today = explode("/",$today);
$my_time = mktime(0,0,0,$today[0],$today[1],$today[2]);
$expire = $_GET['Date'];
if ($my_time >= $expire)
{
Header ("Location:out-of-date.php?expire=" . $expire . "");
}else{
Header ("Location:main.php");
}
tia,
regards,
Darren Yates
[EMAIL REMOVED]
http://dittodesign.co.uk
http://www.how-to-make-money-online.info