...

View Full Version : Pageforwarding Based On Date Gathering?!?



TStewartFan
12-21-2004, 01:23 AM
I am working with my first ever dynamic website and am working in ASP Java but have hit yet another bumb in the road. I have a page that requires the user to click one of two options. Upon clicking one of the two I would like to use ASP to collect the system clock date and forward the user on to a page predefined in an access database as the correct page to load. Is this possible with ASP? If so can someone help me out as this is for a personal non profit website. Thanks.

jaywhy13
01-07-2005, 02:54 AM
I am working with my first ever dynamic website and am working in ASP Java but have hit yet another bumb in the road. I have a page that requires the user to click one of two options. Upon clicking one of the two I would like to use ASP to collect the system clock date and forward the user on to a page predefined in an access database as the correct page to load. Is this possible with ASP? If so can someone help me out as this is for a personal non profit website. Thanks.

Okay, reading your post I'm thinking that in order to collect the date you will need the Date() function.... Secondly in terms of database connectivity, have you reached that stage yet, have you decided how to connect to the database yet? Where are you and please be a little clearer of what you need to know!

ghell
01-07-2005, 03:07 PM
what like this?


If Date() < "25/12/2004" Then
Response.Redirect "its_almost_xmas_yaaay.asp"
Else
Response.Redirect "aww_you_missed_it.asp"
End If

:confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum