var arv = checkBoxArr.toString(); document.getElementById('selectcheck').value=arv; return confirm("Are You Sure ?"); } </script> <?php $mysql = new mysql(); $common = new common(); $category = new subcategory("sub_maincategory"); $table = "sub_category"; if ($_GET['wtdo'] == 'add_category' && $_POST['category'] != "") { echo $add = $category->add_sub_category($_POST['subcategory'], $_POST['markbold'], $_POST['category']); } if ($_GET['wtdo'] == 'edit_category' && $_POST['category'] != "") { echo $add = $category->edit_sub_category($_POST['subcategory'], $_GET['id'], $_POST['markbold'], $_POST['category']); } ?> <table align="left" width="100%" style="font-family:Arial, Helvetica, sans-serif; font-weight:bold; color:#FFFFFF; font-size:16px;"> <tr><td colspan="6" align="center" valign="middle"> <table align="center" > <tr> <td><img src="images/listmain.png" /></td> <td style="color:#003399; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:18px;" align="center" valign="middle"> List of Sub Categories</td>