Hi guys,
I use a very big form and my variables will be saved in a session. In most cases I´m fine with PHP. Until now I just use JS to hide and show some options.
My idea is to give the user a selection (somewhere in my form). As soon as the user clicks on one of the selection options, the value of the variable shall appear as text below the selection options (not just in the selection options).
1. Idea - import the php-variables in my JS and work with it
<script type="text/javascript">var test ="<?php echo $test ?>";</script>
--> didnt work. I could work with the variable, but I dont get a "fresh" variable from the session, because I would have to push the form button first.
2. Idea - create a JS variable in the selection options
<selection id="test"><option value=test1">Test1</option><option value=test2">Test2</option>...</selection>
--> didnt work.
Do you have any ideas what I should look for or what I have to do?
Thanks and cheers,
Chrex