LynneM Posted January 7, 2004 Share Posted January 7, 2004 I have a database setup using MySQL. On my Dreamweaver form I want to use checkboxes, but I must not be binding it correctly. Form in browser shows correctly, but in database the checkboxes are replaced with a textbox and no data saved. I have it listed as a VARCHAR in database...is this incorrect? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/1604-using-checkboxes-with-a-database/ Share on other sites More sharing options...
cozmic Posted January 12, 2004 Share Posted January 12, 2004 I use a TINYINT(1) for checkboxes and the value of the checkbox is 1 when selected. Quote Link to comment https://forums.phpfreaks.com/topic/1604-using-checkboxes-with-a-database/#findComment-5288 Share on other sites More sharing options...
LynneM Posted January 13, 2004 Author Share Posted January 13, 2004 Thanks! I'll try that... Quote Link to comment https://forums.phpfreaks.com/topic/1604-using-checkboxes-with-a-database/#findComment-5292 Share on other sites More sharing options...
morpheus.100 Posted February 26, 2004 Share Posted February 26, 2004 Also you could use enum and set defaults to ('0','1'). Works a treat 4 me. Quote Link to comment https://forums.phpfreaks.com/topic/1604-using-checkboxes-with-a-database/#findComment-5542 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.