-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWiform.php
More file actions
30 lines (26 loc) · 716 Bytes
/
Wiform.php
File metadata and controls
30 lines (26 loc) · 716 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
<?php
$con=mysqli_connect("localhost","root","root","");
$dbname="event";
mysqli_select_db($con,$dbname);
$a1 = $_POST['firstname'];
$a2 = $_POST['email'];
$a3 = $_POST['mobile'];
$a4 = $_POST['address'];
$a5= $_POST['city'];
$a6= $_POST['state'];
$a7= $_POST['zip'];
$a8= $_POST['wd'];
$a9 = $_POST['cardname'];
$a10 = $_POST['cardnumber'];
$insert1 = "insert into winfo(firstname,email,mobile,address,city,state,zip,wd,cardname,cardnumber)values('$a1','$a2','$a3','$a4','$a5','$a6','$a7','$a8','$a9','$a10')";
if(!mysqli_query($con,$insert1))
{
die("Error".mysqli_error($con));
}
else{
echo "Welcome $a2";
header("Location: Wselect.html");
}
mysqli_select_db($con,$dbname);
mysqli_close($con);
?>