} if(paid_date == null || paid_date == ""){ alert("paid_date can't be empty"); return false; } return true; } </script> <?php session_start(); include "header.php"; include "class.invoice.dao.php"; include "class.customer.dao.php"; $daoCustomer = new DAOcustomer(); $customer_detail = $daoCustomer->getCustomers($_SESSION['uid']); ?> <center> <h3>Add Invoice</h3> <form name = "frmInvoice" method="POST" action="save.invoice.php" onsubmit = "return validateInvoice();"> <table cellspacing="5" cellpadding="5"> <?php if (isset($_GET["id"])) { $dao = new DAOinvoice(); $vo = $dao->get($_GET["id"]); ?> <tr> <td> Customer Name </td> <td><select name = "customer" style="width:198px" value = "<?php echo $vo->customer; ?>