Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Dec 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pageforwarding Based On Date Gathering?!?

    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.

  • #2
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Exclamation Could you be a little bit clearer

    Quote Originally Posted by TStewartFan
    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!

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    what like this?

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •