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
    New Coder
    Join Date
    Jan 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to pass & in query string??

    i have trying to pass string on next page throug qurey strong
    but when i try to get in next page its taken only first word.


    Like nokia 3600 orange network
    when i get on next page id taken only nokia..


    Thanks....

  • #2
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Could you post some code or post the url....
    Ususally it should escape the string and put like a "%20" for the space.

  • #3
    Regular Coder
    Join Date
    Dec 2004
    Location
    Jamaica
    Posts
    592
    Thanks
    2
    Thanked 0 Times in 0 Posts
    You should also try using the Post method to see if the same thing happens!

  • #4
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts
    hmm

    if you use this
    <a href="page.asp?phone=nokia 3600 orange network">link</a>

    you should be able to read it fine with
    Request.QueryString("phone")

    make sure you have the "s in the link though, a lot of people dont, or use '.. both of these are pants and you should always use "s

    you didnt actaully say anything about ampersands (&) but if you pass this in the link it needs to be changed to the urlencode of it (in the same way that space is %20)

    eg
    <a href="page.asp?toothpaste=<%=Server.URLEncode("arm&hammer, it must be the baking soda")%>">

    i think.. if you send it as & it will think you are sending a 2nd querystring, eg
    ?qs1=pie&qs2=pasta&qs3=....

  • #5
    New Coder
    Join Date
    Jan 2005
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanks for help

    i got solution using urlencode..


    Tnanks again...


  •  

    Posting Permissions

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