-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchkPolicestationdetail.php
39 lines (35 loc) · 1.21 KB
/
chkPolicestationdetail.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
error_reporting(0);
//session_start();
include("config.php");
$pstationname = $_POST['psname'];
$areaname = $_POST['area'];
$address =$_POST['address'];
$pincode = $_POST['pincode'];
$contactno = $_POST['contactno'];
$emailid= $_POST['emailid'];
$city =$_POST['city'];
$sdate = $_POST['sdate'];
$contactperson =$_POST['contactperson'];
/*$username=$_POST['loginname'];
$password=$_POST['password'];
$rpassword=$_POST['rpassword'];
$insertloginQuery = "insert into mstr_login(username,password)
values ('".$username."','".$password."')";*/
$insertpsQuery = "insert into mstr_policestation (area_id,address,contact_no,
Email_id,contact_person,starting_date,
policestation_name,city_id)
values('".$areaname."','".$address."','".$contactno."',
'".$emailid."','".$contactperson."','".$sdate."',
'".$pstationname."','".$city."')";
$msg = base64_encode("Registered Successfully");
//echo "$insertpsQuery";
if(mysql_query($insertpsQuery))
{
header("location:home.php?msg=$msg");
}
else
{
header("location:officerdetail.php?msg=Not Registered");
}
?>