Forum Moderators: open
I have four pages on my site.
index.php
page2.php
page3.php
page4.php
.. in my header I have 4 buttons. How can I change the page content without displaying the name of the page in the address field of the browser?
I have the following in my form:
<input type='button' value='Page2' onClick='top.location="page2.php"' class='button'>
...however, when I click on the link the URL in the address changes from:
http://www.mysite.com/index.php
to:
http://www.mysite.com/firm.php
How can I get the URL to display:
http://www.mysite.com/?=Page2
Here is a live site as a perfect example of what I want to do:
[kca-assoc.com...]
Thank you in advance for any assistance.
[edited by: Muzic at 4:32 am (utc) on April 18, 2005]
have you tried
<input type='button' value='Page2' onClick='top.location="?=page2"' class='button'>
just a thought
but... as far as i know, when you get the '?' seemingly without a page that it relates to, is because it is showing the default page for that direcotry, which no doubt would be an index.php and passing the querystring to that.
so that site that you put the link to , has 1 php/asp whatever page that takes the querystring k=blah to route the page accordingly.
hth