echoing value of checkboxes using php and javascript
hi,
i have an array of checkboxes which i am calling from the database. onchecking each checkbox the value should be concanated to a variable.
say i have 3 checkboxes with values a,b,c if i check the first checkbox then a variable say $var should be = to a then if i check the second checkbox $var=a,b any idea how to achieve this?
Thanks in advance,
Sukanya
echoing value of checkboxes using php and javascript
Hi Sukanya,
You will have to trap the onChecked event of the checkboxes and write a JS function which will reconstruct the value of this variable.
Hope this helps.
Cheers,
~Maneet Puri
Lexolution IT Services
Web Design & Development Services