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 5 of 5
  1. #1
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post

    redirect depending on info from link.

    Ok I have just made a page for a reply in the html/css forum on which i have an example of putting a border around an image in a graphics editor.

    Since I am on brinkster I can't link directly to that file in my db directory. So I decided I would write my very first asp script with no outside help...I failed.LoL any way I want to redirect depending on variables(i think) sent with the link from the reply. But It doesn't seem to do the check it just redirects to the image.asp page.

    For the link I have and my index.asp has
    Code:
    <HTML>
    <HEAD>
    <% if linka = imagepage then 
    response.redirect("db/image.asp")
    else response.redirect("index3.htm")
    end if%>
    <TITLE></TITLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    </BODY>
    </HTML>
    What did I do wrong?
    Omnis mico antequam dominus Spookster!

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    Lake Forest, CA
    Posts
    259
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Um, sorry this doesnt answer your question, but where did you get the poll on that page? Could you please send me the link? Thanks

  • #3
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    I can't remember, I'll just set it as an attachment it is quite small.
    By the way, the one on that page I have customized for myself including the images.
    Attached Files Attached Files
    Omnis mico antequam dominus Spookster!

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    10,966
    Thanks
    0
    Thanked 236 Times in 233 Posts
    <HTML>
    <HEAD>
    <%if request.querystring("linka") = "imagepage" then
    response.redirect("db/image.asp")
    else
    response.redirect("index3.htm")
    end if%>
    <TITLE></TITLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    </BODY>
    </HTML>

  • #5
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    Thanks a heap. Although that page was only to demonstrate to a newbie to graphics it was worth it, because now I know how to get that information from a link.

    Once again Thanks.
    ...Mike
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

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