Add a PHP Database to these codes.
Home Screen:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Home Screen</title>
</head>
<style>
.content {
max-width: 500px;
margin: auto;
text-align: center;
}
#btn {
margin-top: 5px;
}
</style>
<body class="content">
<h1>GAMER</h1>
<a href="User login.html">
<button id="btn" type="button">User
Login</button>
<br>
</a>
<a href="Admin login.html">
<button id="btn" type="button">Admin
Login</button>
<br>
</a>
<a href="List all games.html">
<button id="btn" type="button">List All
Games</button>
</a>
</body>
</html>
PlayServer-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Play Screen</title>
</head>
<style>
.content {
max-width: 500px;
margin: auto;
text-align: center;
}
.date {
text-align: right;
}
</style>
<body class="content">
<div>
<p class="date" >Date: <span
id="datetime"></span></p>
<h1>Game Title</h1>
<button type="submit">New
Game</button>
<button type="submit">Load
Game</button>
</div>
</body>
</html>
List All Games-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>List All Games</title>
</head>
<style>
.content {
max-width: 500px;
margin: auto;
text-align: center;
margin-top: 50px;
}
.list {
text-align: left;
}
#playButton {
margin-left: 150px;
}
</style>
<body class="content">
<div>
<table class="list">
<tr>
<th>Title</th>
</tr>
<tr>
<td>TitleA</td>
<td>
<a href="Play
screen.html">
<button
id="playButton" type="submit">Play</button>
</a>
</td>
</tr>
<tr>
<td>TitleB</td>
<td>
<a href="Play
screen.html">
<button id="playButton"
type="submit">Play</button>
</a>
</td>
</tr>
<tr>
<td>TitleC</td>
<td>
<a href="Play
screen.html">
<button id="playButton"
type="submit">Play</button>
</a>
</td>
</tr>
<tr>
<td>TitleD</td>
<td>
<a href="Play
screen.html">
<button id="playButton"
type="submit">Play</button>
</a>
</td>
</tr>
<tr>
<td>TitleE</td>
<td>
<a href="Play
screen.html">
<button id="playButton"
type="submit">Play</button>
</a>
</td>
</tr>
<tr>
<td>TitleF</td>
<td>
<a href="Play
screen.html">
<button id="playButton"
type="submit">Play</button>
</a>
</td>
</tr>
</table>
</div>
</body>
</html>
User login-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>USER Login</title>
</head>
<style>
.content {
max-width: 500px;
margin: auto;
margin-top: 50px;
text-align: center;
}
</style>
<body class="content">
<form>
<div class="container">
<label>Username : </label>
<input type="text" placeholder="Enter
Username" name="username" required><br>
<label>Password : </label>
<input type="password" placeholder="Enter
Password" name="password" required><br>
<label>ID:</label>
<input type="text" placeholder="Enter
ID"><br>
<button
type="submit">Login</button>
</div>
</form>
</body>
</html>
Admin Login-
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Admin Login</title>
</head>
<style>
.content
{
max-width: 500px;
margin: auto;
margin-top: 50px;
text-align: center;
}
</style>
<body class="content">
<form>
<div class="container">
<label>Admin No : </label>
<input type="text" placeholder="Enter Admin
No" name="admin" required><br>
<label>Password : </label>
<input type="password" placeholder="Enter
Password" name="password" required><br>
<button
type="submit">Login</button>
</div>
</form>
</body>
</html>
Add a PHP Database to these codes. Home Screen: Home Scr
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Add a PHP Database to these codes. Home Screen: Home Scr
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!