Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $chemist = $_POST['chemist'];
- if (empty($_POST['pob'])) {
- $pobErr = 'required';
- } elseif (empty($_POST['strips'])) {
- $stripsErr = 'required';
- } elseif (empty($_POST['chemist'])) {
- $chemistErr = 'required';
- } else {
- if (!is_numeric($_POST['pob'])) {
- $msg = '<span class="error"> Data entered was not numeric</span>';
- } else {
- if (!is_numeric($_POST['strips'])) {
- $msg2 = '<span class="error"> Data entered was not numeric</span>';
- } else {
- $field_array = array('pob' => $_POST['pob'], 'strips' => $_POST['strips'], 'chemist' => $_POST['chemist'], 'bdm_id' => $tf_id, 'type' => 'tf', 'created_at' => date('Y:m:d '));
- $rx = new pob();
- $rx->create($field_array);
- flashMessage('Added Successfully', 'success');
- }
- }
- }
- }
- ?>
- <a href="dashboard.php" class="btn btn" >Back</a>
- <?php
- require_once 'header.php';
- if (isset($_SESSION['message'])) {
- echo $_SESSION['message'];
- unset($_SESSION['message']);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement