Could anyone please tell me how to use php session variables inside a JavaScript function? I have a php page with some option buttons and when the user clicks the submit button i want the value of the checked option button to be stored in a php session variable which i want to use on another page. which radio button has been selected is being checked through JavaScript. In the same function i want to store that value in a php session varaible. Could anyone please tell me how this can be done? If i use the session variable inside the javascript function it simply ignores it.
|
you could get the php session variable name in
|
|||
|
there is something called "Javascript Cookies", very handy for this kind of stuff came in good use when i had your problem. here's the link: Javascript Cookies hope it helps you out! |
|||||||||||||
|