Ask about CHECKBOX
Posted: Mon Jul 05, 2010 1:51 am
Hi Masters.. I am newbie here..
I wanna ask a question about checkbox in php..
I have table for example category in mySQL database. In my php script, i have 4 checkboxes (for example : Music, Game, Book, Handphone). I have a field in the category table for parameter true or false (1 or 0) so when the category that have value "1", the checkbox for the category is checked when the php script loaded..
Its just like a sorting for data.. when user check Game and Music, the page only load data for game and music... but when he unchecked it, the page will reload and only show the category checked...
I wanna ask a question about checkbox in php..
I have table for example category in mySQL database. In my php script, i have 4 checkboxes (for example : Music, Game, Book, Handphone). I have a field in the category table for parameter true or false (1 or 0) so when the category that have value "1", the checkbox for the category is checked when the php script loaded..
Its just like a sorting for data.. when user check Game and Music, the page only load data for game and music... but when he unchecked it, the page will reload and only show the category checked...
