Forums

ASP

This topic is locked

Redirect based on server time

Posted 01 Oct 2006 03:11:56
1
has voted
01 Oct 2006 03:11:56 Charles Knight posted:
Anyone out there know how to do a rediret based on the server time...

Have found some redirect based on client time, but nothing for server time.

Basically if a client goes to a URL between a certain server time they will be redirected to a specific page.

Many thanks in advance

CK

Replies

Replied 03 Oct 2006 11:16:15
03 Oct 2006 11:16:15 allan khalil replied:
Hi Charlie,

Charlie you might want to have a look at the > (greater than) and < (less than) statements.

If you wanted to display page1.asp between 9am - 5pm
and
want to display page2.asp between 5pm - 9am

you could call a recordset asking for == if value Now() is > than 9am then show (and vise versa)

hope ive helped?

regs
Al

Reply to this topic