Page 1 of 1

session variable through checkbox without POST

Posted: Sun Nov 02, 2008 1:32 pm
by patfee
Hi,
i completely lost on how i could establish the following

On page1.php i would like to have a couple of checkboxes
the checkbox values should initially be storred within a session variable (array)
when the checkbox status changes, these session variable should be updated.

i would like to avoid the "post" method.

many thanks for your advise!

rgds
Patrick

Re: session variable through checkbox without POST

Posted: Mon Nov 03, 2008 4:23 am
by sirish
Do you want to change the value of session variable when the check box is clicked without posting the form? If yes then u can use ajax. You can call ajax page and on click event of the check box and change the value of session variable on that ajax page.

Re: session variable through checkbox without POST

Posted: Mon Nov 03, 2008 8:23 am
by aceconcepts
or you could use javascript.

Re: session variable through checkbox without POST

Posted: Tue Nov 04, 2008 2:39 am
by sirish
aceconcepts wrote:or you could use javascript.
But how will you change the value of session variable thru javascript