-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathSavedData.php
More file actions
32 lines (22 loc) · 783 Bytes
/
SavedData.php
File metadata and controls
32 lines (22 loc) · 783 Bytes
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
<?php
$name = $_REQUEST['txtName'];
$email = $_REQUEST['txtEmail'];
$number = $_REQUEST['txtNumber'];
$candi = $_REQUEST['txtCand'];
$rollno = $_REQUEST['txtRollNo'];
$reason = $_REQUEST['txtReason'];
$Branch = $_REQUEST['txtBranch'];
//database connection
include('dbConnect.php');
$sql = "INSERT into users(name,email,Branch,number,candidate,rollno,reason) values(:name,:email,:Branch,:number,:candidate,:rollno,:reason)";
$stmt = $pdo->prepare($sql);
$stmt->bindParam(":name",$name);
$stmt->bindParam(":email",$email);
$stmt->bindParam(":Branch",$Branch);
$stmt->bindParam(":number",$number);
$stmt->bindParam(":candidate",$candi);
$stmt->bindParam(":rollno",$rollno);
$stmt->bindParam(":reason",$reason);
$stmt->execute();
header('location:successfully.php');
?>