I'm creating a form where I display different fields depending on the URL variable that is passed through a link...
<a href="foo.php?a=bar&b=x">Link1</a>
<a href="foo.php?a=bar&b=y">Link2</a>
<a href="foo.php?a=bar&b=z">Link3</a>
These links are a ways down the page, and when clicked, the page jumps to the top because of the new URL. I can "anchor" the page on the links by adding # anywhere in the URL...
<a href="#?a=bar&b=x">Link1</a>
This will keep the page from jumping up, but it breaks my ability to GET the variable. There must be a way to both GET the variable and maintain the focus on the link, but I am too much of a noob to know how.
Anybody help a brother out?
<a href="foo.php?a=bar&b=x">Link1</a>
<a href="foo.php?a=bar&b=y">Link2</a>
<a href="foo.php?a=bar&b=z">Link3</a>
These links are a ways down the page, and when clicked, the page jumps to the top because of the new URL. I can "anchor" the page on the links by adding # anywhere in the URL...
<a href="#?a=bar&b=x">Link1</a>
This will keep the page from jumping up, but it breaks my ability to GET the variable. There must be a way to both GET the variable and maintain the focus on the link, but I am too much of a noob to know how.
Anybody help a brother out?