forked from aleoaninda/Gamebox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.php
More file actions
85 lines (84 loc) · 4.28 KB
/
Copy pathrequest.php
File metadata and controls
85 lines (84 loc) · 4.28 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!--
Gamebox.com alpha Ver 1.2
for the final project of CSE 391
by Aleo Aninda (ID: 13301113)
-->
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Game Box</title>
<link rel="icon" href="g_favicon.ico">
<link rel="stylesheet" href="stylesheet_gamebox .css" type="text/css" />
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz' rel='stylesheet' type='text/css'>
</head>
<body>
<?php
include 'database_auth.php';
if(isset($_POST["reqsubmit"])){
$sql="INSERT INTO `request` (`g_name`, `url`, `c_name`, `c_email`) VALUES ('$_POST[g_name]', '$_POST[url]', '$_POST[f_name]', '$_POST[email]')";
if($database->query($sql)==true)
$regsuccess=true;
else
$regsuccess=false;
}
else{
}
$database->close();
?>
<div id="headerobx">
<div id="logodiv"><a href="index.php"><img id="logo" src="gamebox.png"></img></a></div>
<div id="headerinfo">
<a class="headerlink" href="store.php">Store</a>    
<a class="headerlink" href="request.php">Request Order</a>    
<a class="headerlink" href="contact.php">Contact</a>    
<?php
if(isset($_SESSION["CUSTOMER_ID"])){
echo '<a class="headerlink"'.' href="cart.php">Cart</a>    ';
echo '<a class="headerlink"'.' href="myaccount.php">My Account</a>    ';
echo '<a class="headerlink"'.' href="logout.php">Sign out</a>    ';
}
else{
echo '<a class="headerlink"'.' href="register.php">Register</a>    ';
echo '<a class="headerlink"'.' href="login.php">Sign in</a>    ';
}
?>
</div>
</div>
<div id="searcharea2">
<div id="searchbox2">
<form action="searchresult.php" id="searchinput" method="POST">
<input id="sI_O2" type="text" name="searchtext" placeholder="Search for your games here.." size="40"/>
<input id="sI_O2" type="submit" value="Search"/>
</form>
</div>
</div>
<div id="logincontainer">
<div class="loginclass" id="register">
<div id="regcont">
<div id="regbar"><p class="headerlink">Request</p></div>
<div class="formcontainer">
<!--Form for registration-->
<form action="request.php" method="POST" id="registrationform">
Game: <input class="formbox" type="text" name="g_name" size="30"/> <br> <br>
URL: <input class="formbox" type="url" name="url" size="30"/> <br> <br>
Full Name: <input class="formbox" type="text" name="f_name" size="30"/> <br> <br>
Email: <input class="formbox" type="email" name="email" size="30"/> <br> <br>
<input class="formbox" type="submit" name="reqsubmit" value="Submit"/>
</form>
</div>
</div>
</div>
</div>
<div id="tailbox2">
<div class="tailinfo2"><p>Payment accepted only via</p><a title="Bkash" href="http://www.bkash.com/" target="_blank"><img class="clients2" src="./img/clients/bkash.png"></a></div>
<div class="tailinfo2"><p>Join us in our Facebook page</p><a title="Facebook" href="https://www.facebook.com/" target="_blank"><img class="clients2" src="./img/clients/facebook.png"></a></div>
<div class="tailinfo2"><p>Follow us on Twitter</p><a title="Twitter" href="https://twitter.com/" target="_blank"><img class="clients2" src="./img/clients/twitter.png"></a></div>
<div class="tailinfo2"><p>Play with us on Player Dot Me</p><a title="Player Dot Me" href="https://player.me/" target="_blank"><img class="clients2" src="./img/clients/playerdotme.png"></a></div>
<div id="tailbar2">© 2016 Gamebox  </div>
</div>
</body>
</html>