Code to insert check box elements in the database
Code to insert check box elements in the database <?php if(isset($_POST['button'])) {    //count-counts varibale in array  $num=count($_POST['hobbies']); $errors=array();    $total_hobbies="";    for($i=0;$i<$num;$i++)  {  $total_hobbies=$total_hobbies.$_POST['hobbies'][$i].",";  }  $total_hobbies = substr($total_hobbies, 0,-1);    // returns "ef"   //echo $total_hobbies;   if(empty($_POST['name']))  {   $errors[]="Your Name field is empty.Please fill it";  }  else  {  $name=$_POST['name'];  }  if(empty($_POST['address']))  {   $errors[]="Your address field is empty.Please fill it";  }  else  {  $address=$_POST['address'];  }  if(empty($_POST['user_name']))  {   $errors[]="Your user_name field is empty.Please fill it";   $user_name=FALSE;  }  else  {  $user_name=$_POST['user_name'];  } $education=$_POST['education']; $gender=$_POST['gende...
