-
Notifications
You must be signed in to change notification settings - Fork 8
/
sign-up.php
21 lines (16 loc) · 650 Bytes
/
sign-up.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$name = $_POST['usrnam_name'];
$email = $_POST['mail_name'];
$number = $_POST['contct_name'];
$pswrd = $_POST['pass_name'];
$cpswrd = $_POST['cpass_name'];
// echo($name);
// echo($number);
// echo($pswrd);
// echo($cpswrd);
$db=mysqli_connect('localhost','root','','online_bus') or die("Could not connect to Database");
$querry = "INSERT into user__details(name, email, password, cont_num) VALUES('$name', '$email', '$pswrd', $number)";
mysqli_query($db, $querry) or die("Could not execute querry");
// echo("<font color= 'green' size= '5'>Data inserted Successfully</font>");
header('location: login_page.html');
?>