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
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts

    simulating a GET method problem...

    Hi,
    I'm trying to simulate a GET method using a response.redirect... I've been trying a lot of things but I can't find the right syntax... I always get a "page not found" message...
    from this:
    Code:
    response.redirect ("Request.ServerVariables(""SCRIPT_NAME"")?page=1&folder="&folder)
    to this:
    Code:
    response.redirect (server.HTMLEncode("Request.ServerVariables(""SCRIPT_NAME"")?page=1&folder=")&folder)
    I won't show all y attempts since it would be pretty boring... Does anyone have the right syntax?

    thanx a lot

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    which parts have to be variable? this gives you the ability to enter the page and the folder:

    Response.Redirect Request.ServerVariables("SCRIPT_NAME") & "?page=" & intPage & "&folder=" & strFolder
    I am the luckiest man in the world

  • #3
    Regular Coder
    Join Date
    Aug 2003
    Posts
    565
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yeah! that works perfectly now. Thanx a lot


  •  

    Posting Permissions

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