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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Location
    karachi, pakistan
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    i want response.redirect help.....!

    em working on the online trouble ticket system.....!
    now i want that if user enter his username and password correctly on login.asp page then this page redirect towards the mainpage.asp.
    or
    if user enter his username and password incorrectly on login.asp page then this page redirect towards the loginerror.asp.

    i am using the datbase file in whic username or pw is saved.

    n i know that this thing is done by response.redirect

    but my code is not work correctly
    please help me.....

  • #2
    New Coder
    Join Date
    Jul 2007
    Location
    North Carolina, US
    Posts
    32
    Thanks
    1
    Thanked 0 Times in 0 Posts
    In simple terms it would look like this, but I could help you out more if you posted your code.
    Code:
    If LoggedIn = YES then
       Response.Redirect "mainpage.asp"
    Else
       Response.Redirect "loginerror.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
    •