Abhinav Anand

Abhinav Anand

  • NA
  • 2
  • 1.3k

Adding values from checkbox in database using PHP and MYSQL

Oct 3 2012 12:07 PM
Suppose i have a form which has 2 textboxes namely First name and Last name, and a 3rd label called Hobby, with 4 options, each a checkbox! Now i want add the first name, the last name, and the value of the selected checkbox to the database! How would i do it? 
I dis see an example with radio buttons. Will the checkbox code be the same except for the checkbox type instead of radio type? Or should there by any more changes in it ?