Forum Moderators: open

Message Too Old, No Replies

Change Content with Button Link

How to change the window content with link, without showing in URL field.

         

Muzic

4:26 am on Apr 18, 2005 (gmt 0)

10+ Year Member



Any help would be appreciated...

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]

Muzic

4:29 am on Apr 18, 2005 (gmt 0)

10+ Year Member



PS - No iFrame is used...

natty

11:18 am on Apr 18, 2005 (gmt 0)

10+ Year Member



hi there

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

Muzic

2:02 am on Apr 19, 2005 (gmt 0)

10+ Year Member



Would you be able to help me with a query string example that would show me what you mean?

Thanks -