Adrian4263 Posted December 30, 2013 Share Posted December 30, 2013 How could I declare checkbox, if checkbox is checked = 1 else = 0.And insert to mySQL. <input type="checkbox" name="homepage" value="1" /> <-----this is my checkbox code. Only this i know. somemore,if i already insert data to mySQL, how could i display checkbox is checked based on database, 1 = checked, 0 = unchecked. I had try many code,but it won't work as well..Now i've no idea. P/S:I'm using php code. Please help. Thanks. Regards. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.