-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinsert.php
31 lines (24 loc) · 860 Bytes
/
insert.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
<?php
$host = "localhost";
$user = "root";
$pass = "";
$db = "users" ;
$con = mysqli_connect($host,$user,$pass,$db);
$uname = $_GET['username'];
$name = $_POST['name'];
$mobile = $_POST['mobile'];
$email = $_POST['email'];
$no = $_POST['no'];
$from = $_POST['from'];
$to = $_POST['to'];
$date = $_POST['date'];
$time = $_POST['time'];
$operator = $_POST['operator'];
$option = $_POST['option'];
$type= $_POST['type'];
$sql = "insert into user_data(name,mobile,email,no,from1,to1,date,time,operator,option1,type,cust) values ('$name','$mobile','$email','$no','$from','$to','$date','$time','$operator','$option','$type','$uname')";
mysqli_query($con, $sql);
header("Location: https://vitcabshare.000webhostapp.com/mail/booking_confirmation_mail.php?name=$name&email=$email&from=$from&to=$to");
// $page = "index.php";
//$sec = "3";
?>