Forums / General / How to pass a variable from pagelayout.tpl to index.php

How to pass a variable from pagelayout.tpl to index.php

Author Message

Harald Svendsen

Friday 12 December 2003 4:58:50 am

Hello

Is it possible to pass a variable from pagelayout.tpl to index.php?

I've created a javascript menu in pagelayout.tpl. When an image is clicked in this menu I need to remember a variable until another button is clicked. I believe I could do this by creating a session-variable in index.php. I've managed to create the session-variable in index.php and to print it in pagelayout.tpl. My problem is that I do not manage to send the value that I need to store from pagelayout.tpl to index.php.

I've tried to set a hidden-variable in pagelayout.tpl, but this isn't working. I've also tried to pass the variable like this: /ezpublish-3.2-1/index.php/mysite?var="content" and like this: /ezpublish-3.2-1/index.php?var="content"/mysite. This will not work.

Appreciate any help!

Regards,
Harald