By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,746 Members | 1,928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,746 IT Pros & Developers. It's quick & easy.

how to hide query string

P: 5
i have a page1 and page2.

in the page on a have this php code :

Expand|Select|Wrap|Line Numbers
  1.  
  2. $query = "select code, name from mscustomer";
  3.  
  4. $rs = mysql_query($query);
  5.  
  6. while($row = mysql_fetch_array($rs))
  7. {
  8.  
  9. }
  10.  
  11.  
May 10 '07 #1
Share this Question
Share on Google+
6 Replies


ak1dnar
Expert 100+
P: 1,584
This is Not clear at all. could you please further explain it.
May 10 '07 #2

P: 5
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
May 10 '07 #3

ak1dnar
Expert 100+
P: 1,584
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.
May 10 '07 #4

P: 5
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?
May 10 '07 #5

ak1dnar
Expert 100+
P: 1,584
for GET method also there is a Limitation.
http://support.microsoft.com/kb/208427
May 10 '07 #6

Motoma
Expert 2.5K+
P: 3,235
Store it in your SESSION.
May 10 '07 #7

Post your reply

Sign in to post your reply or Sign up for a free account.