title: How do I write php code to check if checkbox is checked or not?
body: <p>How do I write php code to check if checkbox is checked or not ?
   if checkbox is selected then <code>YES</code> value stored in the database, and if checkbox is not selected, then <code>NO</code> valued stored in  the database. How to do that?
  I know how to connect database etc. thanks
      </p>