Suppose I have a page called view.php, if I give an argument like view.php?q=fruit, it creates a list of fruits stored in an array. I want change the content of a label in a page to be changed to the content of that array if a slider in that page changes. In the example above, this array contains: $list = array('banana', 'apple', 'orange'); I want to have a slider in the page and a lable that when the user changes the slider’s value, the label’s text changes to ‘banana’, ‘apple’, …
I heard aboue sessions in PHP but since there may be lots of calls to this page in multiple tabs, I think this wouldn’t be a good idea. How can I do this?
Thanks in advance.
OK. I found what I wanted. I found a pretty neat slider here:
http://jqueryui.com/demos/slider/
then I used in in my page like this:
Please note that I used Rob’s answer as my source and all the credit’s go to him. But since it was not EXACTLY what I wanted, I decided to post my own answer.