I have an issue and need a tissue. =)
I've have this collapsible menu I built with <span>'s. One of the items looks like this:
The toggleMenu function is just changing the style.display to "blick" to show the span.
I am trying to set a session variable when someone clicks on a menu header. This way when the user clicks on a link under the header, the next page will still have that menu header expanded.
I've tried onClick with PHP setting the session var, but evidently PHP doesn't listen for "onClick" and it just does it every time, thus expanding every header every time.
I'm looking for suggestions on how to accomplish this.
KizMar
------------
I've have this collapsible menu I built with <span>'s. One of the items looks like this:
Code:
<a href="javascript:toggleMenu('menu')" class="menuHead">+ Menu Header</a><br>
<span id="menu">
<a href="#" class="menuOption">- Option 1</a><br>
<a href="#" class="menuOption">- Option 2</a><br>
</span>
The toggleMenu function is just changing the style.display to "blick" to show the span.
I am trying to set a session variable when someone clicks on a menu header. This way when the user clicks on a link under the header, the next page will still have that menu header expanded.
I've tried onClick with PHP setting the session var, but evidently PHP doesn't listen for "onClick" and it just does it every time, thus expanding every header every time.
I'm looking for suggestions on how to accomplish this.
KizMar
------------