A Simple HTML Checkbox with PHP Problem

Photososo

New Member
I have a field in my update form called approve which is using the html checkbox element. now i am querying the approve value from the database which will hold the binary value (0 or 1), i want the checkbox to perofrm the following actions in condition.a) While Querying from database.1)if the value of active is 1 then it should be checked by default and also it should hold the value 1 to process it to update2)the same applies for 0, if the value is zero then it is unchecked and will hold the value 0 to processP.S: I want to use this for updating the form not inserting.
 
Back
Top