forked from g33kyrash/Online-Banking-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
add_staff.php
24 lines (22 loc) · 999 Bytes
/
add_staff.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
session_start();
if(!isset($_SESSION['admin_login']))
header('location:adminlogin.php');
?>
<?php
include '_inc/dbconn.php';
$name= mysql_real_escape_string($_REQUEST['staff_name']);
$gender= mysql_real_escape_string($_REQUEST['staff_gender']);
$dob= mysql_real_escape_string($_REQUEST['staff_dob']);
$status= mysql_real_escape_string($_REQUEST['staff_status']);
$dept= mysql_real_escape_string($_REQUEST['staff_dept']);
$doj= mysql_real_escape_string($_REQUEST['staff_doj']);
$address= mysql_real_escape_string($_REQUEST['staff_address']);
$mobile= mysql_real_escape_string($_REQUEST['staff_mobile']);
$email= mysql_real_escape_string($_REQUEST['staff_email']);
$password= mysql_real_escape_string($_REQUEST['staff_pwd']);
$sql="insert into staff values('','$name','$dob','$status','$dept','$doj','$address','$mobile',
'$email','$password','$gender','')";
mysql_query($sql) or die("the email-id is already registered");
header('location:admin_hompage.php');
?>