MySQL Forums
Forum List  »  Connector/Python

MySQL PYTHON database
Posted by: Scott McLean
Date: January 04, 2011 11:33AM


I have basically created a variable for a checkbox which is currently set to 1 and when my form is submitted to the database, the database automattically enters the value 1. what i want to have it do instead is check if the checkbox has been checked, if it has, enter the value 1, if not, enter 0.

The variable I am using is simply: check_var = 0

How is this done?


Options: ReplyQuote

Written By
MySQL PYTHON database
January 04, 2011 11:33AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.