-
Notifications
You must be signed in to change notification settings - Fork 0
/
bookajax.php
29 lines (20 loc) · 824 Bytes
/
bookajax.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
<?php
include("dbaseconnection.php");
$name=$_POST['name'];
$phone=$_POST['phone'];
$address=$_POST['address'];
$tname=$_POST['tname'];
$labname=$_POST['labname'];
$rate=$_POST['rate'];
$time=$_POST['time'];
$date=$_POST['date'];
$email=$_POST['email'];
$sql=mysql_query("select username from lablist where labname='$labname'");
$row=mysql_fetch_row($sql);
$luser=$row[0];
$query=mysql_query("insert into dashboard (tname,username,rate,name,phone,address,time,date,email) values ('$tname','$luser','$rate','$name','$phone','$address','$time','$date','$email')");
echo'<hr /><hr /><hr /><hr /><h2>Thank You!</h2>';
echo'<h3 style="color:green;">';
echo'You have successfully booked your appointment.<br><span style="color:red;">You will get a confirmation call within 24 hrs</span></br>Thank you.';
echo'</h3>';
?>