-
Notifications
You must be signed in to change notification settings - Fork 2
/
enterNames.php
35 lines (32 loc) · 1012 Bytes
/
enterNames.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
<?php
session_start();
$_SESSION['noUsers']=$_POST['noUsers'];
?>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="jeopardy.css">
</head>
<body>
<div class="qCard">
<form action="jeopardy.php" method="POST">
<?php
$_SESSION['qButtons']=array(200,200,200,200,200,200,
400,400,400,400,400,400,
600,600,600,600,600,600,
800,800,800,800,800,800,
1000,1000,1000,1000,1000,1000
);
for ($i=1; $i<=$_SESSION['noUsers']; ++$i){ ?>
<label for="player<?php echo $i ?>">Enter the name of Player <?php echo $i ?>:</label> <input type="text" name="player<?php echo $i ?>" id="player<?php echo $i ?>" placeholder="Player Name"><br><br>
<?php
}
?>
<div class="qCardButton">
<input type="submit" value="Play">
</div>
</form>
</div>
</body>
</html>