formatting
This commit is contained in:
parent
ba05612a57
commit
6664acbdfe
4 changed files with 35 additions and 25 deletions
|
@ -13,20 +13,19 @@ if (!isset($_COOKIE["votiFemminili"])) {
|
|||
if (!isset($_COOKIE["votiMaschili"])) {
|
||||
setcookie("votiMaschili", 0, time() + 60 * 60 * 24 * 30);
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
<html lang="it">
|
||||
|
||||
<head>
|
||||
<title>Login</title>
|
||||
<?php require "includes/head.php" ?>
|
||||
<?php require "includes/head.php"; ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Vota Atleti</h1>
|
||||
<h2>Ciao <?php echo $_SESSION["nome"] ?></h2>
|
||||
<h2>Ciao <?php echo $_SESSION["nome"]; ?></h2>
|
||||
<form action="thanks.php" method="post">
|
||||
<?php
|
||||
$nomi = [];
|
||||
|
@ -38,16 +37,24 @@ if (!isset($_COOKIE["votiMaschili"])) {
|
|||
|
||||
foreach ($nomi as $nome) {
|
||||
echo '<div class="mb-3">';
|
||||
echo '<label for="voto_' . $nome . '" class="form-label">' . $nome . '</label>';
|
||||
echo '<input type="number" class="form-control" id="voto_' . $nome . '" name="voto_' . $nome . '" min="1" max="10">';
|
||||
echo '</div>';
|
||||
echo '<label for="voto_' .
|
||||
$nome .
|
||||
'" class="form-label">' .
|
||||
$nome .
|
||||
"</label>";
|
||||
echo '<input type="number" class="form-control" id="voto_' .
|
||||
$nome .
|
||||
'" name="voto_' .
|
||||
$nome .
|
||||
'" min="1" max="10">';
|
||||
echo "</div>";
|
||||
}
|
||||
?>
|
||||
<button type="submit" class="btn btn-primary">Invia voti</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php require "includes/footer.php" ?>
|
||||
<?php require "includes/footer.php"; ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue