forked from mohitgoyal18/Hotel-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpayment.php
More file actions
30 lines (29 loc) · 675 Bytes
/
payment.php
File metadata and controls
30 lines (29 loc) · 675 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
include('connection.php');
function reg_in()
{
if(isset($_POST['submit']))
{
$card_type = $_POST['type'];
$m = $_POST['month'];
$y = $_POST['year'];
$card_no = $_POST['num'];
$card_name = $_POST['name'];
$c_no = $_POST['cvv'];
$pass = $_POST['password'];
if(mysql_query("INSERT INTO `payment` (`card_type`,`month`,`year`,`card_no`,`card_name`,`cvv`,`pass`) VALUES ('$card_type','$m','$y','$card_no','$card_name','$c_no','$pass')"))
{
header('Location: C:/wamp/www/project/payment.html');
}
else
echo mysql_error();
}
}
if(isset($_POST['submit']))
{
reg_in();
//echo ' succesfully inserted';
}
else
echo 'Not cancel';
?>