Link to home
Create AccountLog in
Avatar of Qw M
Qw MFlag for United States of America

asked on

Ckeck box - update value in mysql database

Hi,
I have a php page with 3 checkboxes:
<input type="checkbox" name="ID216" value="yes">test1<br>
<input type="checkbox" name="ID102" value="yes">test2<br>
<input type="checkbox" name="ID079" value="yes">test3<br>

and a table named table1 with 2 columns: IDcheck and Value
IDcheck    Value
ID216         no
ID102         no
ID079         no

I need a javascript or jquery script that will update the table when I check the checkboxes or to run a php page that will update the table!

Thank you,
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

do u want to update the table upon every checkbox change?
won;t u rather have a Update button, which will update all checkboxes at once?
Avatar of Qw M

ASKER

I want to update the table upon every checkbox change!
ASKER CERTIFIED SOLUTION
Avatar of Meir Rivkin
Meir Rivkin
Flag of Israel image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of Qw M

ASKER

Thank you very much!