rockinaway Posted October 4, 2008 Share Posted October 4, 2008 If the value of my checkbox is 0, it messes up my query and the query won't work. Eventhough I set the value properly.. it has to be ticked. How can I prevent this problem from occurring? Link to comment https://forums.phpfreaks.com/topic/127018-checkbox-values-are-0/ Share on other sites More sharing options...
PFMaBiSmAd Posted October 4, 2008 Share Posted October 4, 2008 ALL external data must be validated before being used. Your validation logic will test for acceptable values and output a meaningful message when something unacceptable is entered and take appropriate action (like skipping over the logic that executes a query.) What is your validation logic doing? Link to comment https://forums.phpfreaks.com/topic/127018-checkbox-values-are-0/#findComment-657049 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.