Not display the query string in browser.

Mike's Avatar
Go4Expert Member
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's Avatar, Join Date: Jul 2004
Go4Expert Founder
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.

Shabbir Bhimani
Mike's Avatar
Go4Expert Member
Something a bit complicated. I think I need to learn more befor doing stuf like this.