how to hide query string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • XeonYk
    New Member
    • Nov 2006
    • 5

    how to hide query string

    i have a page1 and page2.

    in the page on a have this php code :

    Code:
    $query = "select code, name from mscustomer";
    
    $rs = mysql_query($query);
    
    while($row = mysql_fetch_array($rs))
    {
    
    }
  • ak1dnar
    Recognized Expert Top Contributor
    • Jan 2007
    • 1584

    #2
    This is Not clear at all. could you please further explain it.

    Comment

    • XeonYk
      New Member
      • Nov 2006
      • 5

      #3
      Originally posted by ajaxrand
      This is Not clear at all. could you please further explain it.
      i just want to pass my querystring to other page using url but it not the query string not appear in address bar, just only the address

      Comment

      • ak1dnar
        Recognized Expert Top Contributor
        • Jan 2007
        • 1584

        #4
        Passing a Query String through the URL is not good practice.
        http://www.domain.com? query=select * from table
        But its possible.

        Another way to do is session variables.You can assign your query string to a session variable and fetch it from next page(s).

        or you can use a form with hidden fields, if you are posting forms from page 1 to 2.

        Comment

        • XeonYk
          New Member
          • Nov 2006
          • 5

          #5
          Originally posted by ajaxrand
          Passing a Query String through the URL is not good practice.
          http://www.domain.com? query=select * from table
          But its possible.

          Another way to do is session variables.You can assign your query string to a session variable and fetch it from next page(s).

          or you can use a form with hidden fields, if you are posting forms from page 1 to 2.
          i already think about that way, but if a have a lot of data, it will create more session and hidden field, is that ok?

          Comment

          • ak1dnar
            Recognized Expert Top Contributor
            • Jan 2007
            • 1584

            #6
            for GET method also there is a Limitation.

            Comment

            • Motoma
              Recognized Expert Specialist
              • Jan 2007
              • 3236

              #7
              Store it in your SESSION.

              Comment

              Working...