-
Notifications
You must be signed in to change notification settings - Fork 0
/
host.php
64 lines (62 loc) · 2.29 KB
/
host.php
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
<?php
//Turn on error reporting
ini_set('display_errors', 'On');
//Connects to the database
$mysqli = new mysqli("oniddb.cws.oregonstate.edu", "depreyj-db", "hed5gVlymx3PJKO7", "depreyj-db");
if($mysqli->connect_errno){
echo "Connection error " . $mysqli->connect_errno . " " . $mysqli->connect_error;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Host Sign Up</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<ul class="nav nav-tabs">
<li>
<a href="index.php">Home</a>
</li>
<li>
<a href="guest.php">Guests</a>
</li>
<li class="active">
<a href="host.php">Hosts</a>
</li>
</ul>
</li>
</ul>
<div class="jumbotron well">
<h2>
Welcome Host
</h2>
<p>
Host your property to earn extra income.
</p>
</div><span class="label label-default"></span>
</div>
</div>
</div>
<div class="container">
<h2>Sign Up</h2>
<form action="host_it.php" method="post" role="form" class="form-horizontal">
<div class="form-group">
<div class="col-sm-3"><label>First name</label><input id="first_name" name="first_name" type="text" class="form-control" placeholder="First"></div>
<div class="col-sm-3"><label>Last name</label><input id="last_name" name="last_name" type="text" class="form-control" placeholder="Last"></div>
<div class="col-sm-3"><label>Email</label><input id="email" name="email" type="text" class="form-control" placeholder="Email"></div>
</div>
<div class="col-sm-3">
<button type="submit" class="btn btn-info pull-left">Sign Up</button>
</div>
</div>
</form>
<hr>
</div>
</html>