how to use large no. of querey string?

Discussion in 'PHP' started by bhuppi890109, Apr 25, 2011.

  1. #1
    hey friends i know whenever we use the querystring then we use it with page name where we are navigating to....but what will we do if there are large no. of query string..we can't write it manually with the page name...is there any solution
     
    bhuppi890109, Apr 25, 2011 IP
  2. artus.systems

    artus.systems Well-Known Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
    #2
    What do you mean by large no. of querystring ?
     
    artus.systems, Apr 25, 2011 IP
  3. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #3
    Do you mean more than one query string? You can do that with an ampersand.

    index.php?query1=value1&query2=value2&query3=value3

    If not, I don't understand your question :)
     
    subdivisions, Apr 25, 2011 IP
  4. bhuppi890109

    bhuppi890109 Member

    Messages:
    1,337
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #4
    no ..i mean we can write the querey string if they are small in no.s but what will we do if i have more then 100 querey string..no one will write these query strings manually..by using ampersand...
     
    bhuppi890109, Apr 25, 2011 IP
  5. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #5
    Do you really need all those query strings?
     
    subdivisions, Apr 25, 2011 IP
  6. artus.systems

    artus.systems Well-Known Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
    #6
    Why do you need 100 querystring ?
     
    artus.systems, Apr 25, 2011 IP
  7. bhuppi890109

    bhuppi890109 Member

    Messages:
    1,337
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #7
    no i don't need right now ..but i am under training and my senior ask me this question..he said have you ever seen this type of url in any big site...they use large no. of querey string.
     
    bhuppi890109, Apr 25, 2011 IP
  8. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #8
    subdivisions, Apr 25, 2011 IP
  9. artus.systems

    artus.systems Well-Known Member

    Messages:
    87
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    103
    #9
    You can use hidden form values instead of 100 querystring.
     
    artus.systems, Apr 25, 2011 IP
  10. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #10
    Doesn't really answer his question. OP, you don't ever need that many, rewrite your script if it's giving you that much.
     
    subdivisions, Apr 25, 2011 IP
  11. bhuppi890109

    bhuppi890109 Member

    Messages:
    1,337
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #11

    how to use this ..?can you tell me
     
    bhuppi890109, Apr 25, 2011 IP
  12. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #12
    <input type='hidden' name='productID' value='12345' />

    May or may not be useful.
     
    subdivisions, Apr 25, 2011 IP
  13. bhuppi890109

    bhuppi890109 Member

    Messages:
    1,337
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #13
    but how can i use it in place of query string
     
    bhuppi890109, Apr 25, 2011 IP
  14. subdivisions

    subdivisions Well-Known Member

    Messages:
    1,021
    Likes Received:
    40
    Best Answers:
    1
    Trophy Points:
    145
    #14
    You can't.
     
    subdivisions, Apr 25, 2011 IP
  15. bhuppi890109

    bhuppi890109 Member

    Messages:
    1,337
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    48
    #15
    then my question is same ..how can i use the large no. of query string
     
    bhuppi890109, Apr 25, 2011 IP
  16. ap2010

    ap2010 Guest

    Messages:
    41
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #16
    If you're passing 100 variables in query string, this is poor coding.
     
    ap2010, Apr 25, 2011 IP