an interesting php problem regarding checkboxes
Posted 09 August 2006 - 01:25 PM
friends i m working on a project in php and facing some problem but i hope i got a solution here.
my problem : i have a invitees_present form which is connected to a database in mysql.
now when i run my page it retrives some names from the database and corresponding chack box.
now i have to check some selected check boxes and then store the values in database table. but on the onclick of check boxes at client side how i can save these values in database.one more thing to remember is that the number of checkboxes i got are dynamic in nature how i can named all these. is there any concept of array in html or otherthings i have to do .
help me ,your suggession can build a good project by me
thanks in advanced
Posted 09 August 2006 - 01:51 PM
you can indeed create arrays of elements in html : use name="chkbx" , chkbx etc.
Or just chkbx if you want these fields to auto generate their indices.
Posted 09 August 2006 - 01:55 PM
it will make the results an array for you to play with
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users