Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Not display the query string in browser. (http://www.go4expert.com/forums/display-query-string-browser-t429/)

Mike 27Aug2005 15:32

Not display the query string in browser.
 
I dont know if this is possible but Can somebody show me how to hide my GET variables from appearing in the address bar?

I have developed a site where i used only 1 page, wherein contents are added thru scripts and include files. The contents are called by using GET variables(e.g. index.php?a=show1). What i want to do is to be able to hide these variables from appearing in the address bar, so that it will look neater.

Thank you.

shabbir 27Aug2005 21:10

Re: Not display the query string in browser.
 
I doubt anything like this is possible in a straight forward manner. You are asking for something like I want to pass the data in URL's without actually passing it. What you can do is make the data something like one parameter that will uniquely identify the data and display the page accordingly to keep the url clean.

Now as I mentioned in a straight forward manner so there should be something I refer to as non-straight forward and that is using the JavaScript and Form Post method to submit the data and that will make the URL's clean.

Something like

<A href = "url" OnClick = "SomeFunction()">

Now what the SomeFunction does is

Submits the Form with all the hidden fields With the Post method.

Thanks
Shabbir Bhimani

Mike 20Sep2005 19:50

Re: Not display the query string in browser.
 
Something a bit complicated. I think I need to learn more befor doing stuf like this.


All times are GMT +5.5. The time now is 14:57.