-
Notifications
You must be signed in to change notification settings - Fork 0
/
regRto_Driving_licence.php
26 lines (19 loc) · 1.07 KB
/
regRto_Driving_licence.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
<?php
include('db_connect.php');
$name = $_POST['name'];
$d_o_b = $_POST['d_o_b'];
$blood_group = $_POST['blood_group'];
$issue_date = $_POST['issue_date'];
$exp_date = $_POST['exp_date'];
$licence_type=$_POST['licence_type'];
$aadhar_no = $_POST['aadhar_no'];
$phone = $_POST['phone'];
$address = $_POST['address'];
$sql="INSERT INTO rto_driving_licence(`name`,`d_o_b`,`blood_group`,`issue_date`,`exp_date`,`licence_type`,`aadhar_no`,`phone`,`address`) VALUES ('{$conn->real_escape_string($_POST['name'])}','{$conn->real_escape_string($_POST['d_o_b'])}','{$conn->real_escape_string($_POST['blood_group'])}','{$conn->real_escape_string($_POST['issue_date'])}','{$conn->real_escape_string($_POST['exp_date'])}','{$conn->real_escape_string($_POST['licence_type'])}','{$conn->real_escape_string($_POST['aadhar_no'])}','{$conn->real_escape_string($_POST['phone'])}','{$conn->real_escape_string($_POST['address'])}')";
$insert = $conn->query($sql);
if ( $insert ) {
header("Location:rto_index.php");
} else {
header("Location:Rto_Driving_Licence.php");
}
?>