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 9 of 9
  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,458
    Thanks
    15
    Thanked 0 Times in 0 Posts

    hit a page without a redirect

    I want to hit a page without a redirect....

    basically calling the page with my query values as if it was redirected but the user should not see the redirect or actually be redirected.

    Any ideas?

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    It sounds like you want to look up the Server.Execute command, but it depends on what you're actually trying to do with it.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    Or use xmlhttp to send your values to your asp-page
    I am the luckiest man in the world

  • #4
    Senior Coder
    Join Date
    May 2004
    Posts
    1,458
    Thanks
    15
    Thanked 0 Times in 0 Posts
    i don't think xmlhttp will work

    I actually want to hit a php page without user seeing and with continuing my asp script.

    with teh server.execute i get an error

    Server object error 'ASP 0214 : 80004005'

    Invalid Path parameter

    test.asp, line 132

    The Path parameter excedes the maximum length allowed.

  • #5
    Senior Coder
    Join Date
    May 2004
    Posts
    1,458
    Thanks
    15
    Thanked 0 Times in 0 Posts
    server.execute keeps returning errors.

    If I do at the end of the script response.redirect then that does what I want but i don't really want to redirect.... but I need to call teh php page (not asp) with those parameters from the asp.

    What can I do?

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    Quote Originally Posted by esthera
    i don't think xmlhttp will work
    Why not?

    From the serverside asp-part, create an xmlhttp object which calls your php page, sending your data to this page. should work
    I am the luckiest man in the world

  • #7
    Senior Coder
    Join Date
    May 2004
    Posts
    1,458
    Thanks
    15
    Thanked 0 Times in 0 Posts
    how does that work?
    I thought that the xmlhttp is to pull from a page...

    I have a asp that when redirecting to the php works but I don't want to really redirect to the php just to call it with teh right fields...
    can you help me out here? Will the xmlhttp method work for this?

  • #8
    Senior Coder
    Join Date
    May 2004
    Posts
    1,458
    Thanks
    15
    Thanked 0 Times in 0 Posts
    I think I have it

    set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")
    xmlhttp.open "GET", url, false
    xmlhttp.send ""
    Response.write xmlhttp.responseText
    set xmlhttp = nothing

    Thanks for your help.

  • #9
    Senior Coder
    Join Date
    Jun 2002
    Location
    Zwolle, The Netherlands
    Posts
    1,120
    Thanks
    2
    Thanked 31 Times in 31 Posts
    yeah, but you dont have to write out the responsetext. perhaps call a function on readystatechange which reads the response from the php page. You can use this to validate the correct arrival of your data. Just let the php page return a simple xml-string which indicates success or failure
    I am the luckiest man in the world


  •  

    Posting Permissions

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