form field cutting off querystring

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Joey Martin

    form field cutting off querystring



    I have the following link:

    itemtype=horse

    a form field that should read the refer=querystri ng cuts off after the
    toid=101. I assume that because I have
    referpage=reque st.querystring( "refer")

    Is there any way to make it read the entier section after refer= and not
    stop and the variable?

    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
  • Roland Hall

    #2
    Re: form field cutting off querystring

    "Joey Martin" wrote in message news:OPNPeNNPEH A.2924@TK2MSFTN GP10.phx.gbl...
    :
    :
    : I have the following link:
    : http://foo.com/accountlogin.asp?refe...=101&itemid=9&
    : itemtype=horse
    :
    : a form field that should read the refer=querystri ng cuts off after the
    : toid=101. I assume that because I have
    : referpage=reque st.querystring( "refer")
    :
    : Is there any way to make it read the entier section after refer= and not
    : stop and the variable?

    Try...

    referpage = Server.URLEncod e(Request.Query String("refer") )

    --
    Roland Hall
    /* This information is distributed in the hope that it will be useful, but
    without any warranty; without even the implied warranty of merchantability
    or fitness for a particular purpose. */
    Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
    WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
    MSDN Library - http://msdn.microsoft.com/library/default.asp


    Comment

    • Aaron Bertrand - MVP

      #3
      Re: form field cutting off querystring

      You're going to have mixed results on different browsers and platforms
      trying to pass two question marks in the URL like that. I suggest using
      Server.URLEncod e on the first page, before you pass it across.

      Response.Redire ct "accountlogin.a sp?refer=" &
      Server.URLEncod e("contactform. asp?toid=101&it emid=9&itemtype =horse")

      The Unencode will happen automatically when you retrieve
      Request.QuerySt ring("refer")

      --
      Aaron Bertrand
      SQL Server MVP





      "Joey Martin" <joey@infosmith s.net> wrote in message
      news:OPNPeNNPEH A.2924@TK2MSFTN GP10.phx.gbl...[color=blue]
      >
      >
      > I have the following link:
      > http://foo.com/accountlogin.asp?refe...=101&itemid=9&
      > itemtype=horse
      >
      > a form field that should read the refer=querystri ng cuts off after the
      > toid=101. I assume that because I have
      > referpage=reque st.querystring( "refer")
      >
      > Is there any way to make it read the entier section after refer= and not
      > stop and the variable?
      >
      > *** Sent via Developersdex http://www.developersdex.com ***
      > Don't just participate in USENET...get rewarded for it![/color]


      Comment

      • Joey Martin

        #4
        Re: form field cutting off querystring

        That seems to pass it all but it changes all the characters to gibberish
        (to their character codes). Any ideas?



        *** Sent via Developersdex http://www.developersdex.com ***
        Don't just participate in USENET...get rewarded for it!

        Comment

        Working...