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! 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. 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... 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. 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
Archived
This topic is now archived and is closed to further replies.