<?php session_start(); //include('authen.php'); require_once 'includes/ADAO.php'; if (isset($_POST['submit'])) { $res = ADAO::addBrands($_POST['name']); if ($res == 1) { $message = "Brand Added Successfully"; } else { $message = "Error!!,Please try Again"; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Admin-Home</title> <link href="css/style.css" type="text/css" rel="stylesheet" media="screen" /> <link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css" /> <script type="text/javascript" src="js/chrome.js"></script> <script> function check(frm){ if((frm.name.value=="")){ alert("Please Enter Branch Name"); return false; } } </script> </head>