<?php include "header.php"; require_once "../common/class/category.class.php"; $category_class = new subcategory("sub_maincategory"); $sub_category = $category_class->get_category_by_id($_GET['id']); $category_class = new subcategory("maincategory"); $get_category = $category_class->getcategory(); ?> <table align="center" width="100%"> <tr align="center"> <td align="center" bgcolor="#66CCFF">Edit Sub Category</td> </tr> </table> <form name="frmaddcategory" action="sub_category_management.php?wtdo=edit_category&id=<?php echo $_GET['id']; ?> " method="post" onSubmit="if(validateForm(this)) return true; else return false;"> <div class="formRow" align="center"> <span class="fieldName"><label for="tags"><strong>Sub Category Name</strong></label></span> <span class="fieldVal"><input type="text" id="subcategory" name="subcategory" value="<?php echo $sub_category['name']; ?> " class="vldnoblank textWidth" /> <span class="checkStatus"></span> </span> </div> <div class="formRow" align="center">