-
Notifications
You must be signed in to change notification settings - Fork 0
/
new-mozos.php
27 lines (24 loc) · 883 Bytes
/
new-mozos.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
<?php
session_start();
$pagename = 'New Mozo!';
include("includes/header.php");
include("includes/check-user.php");
if (!isset($_SESSION['new-mozos'])) {
$_SESSION['error-message'] = "Sorry, but no mozo have been give to you at this time...";
header('Location: error.php');
}
require_once("includes/functions.php");
require_once("includes/open_db.php");
?>
<main class='thick-border flex-centered-column'>
<form id='name-mozos' method="post" action="give-mozos.php">
<?php foreach ($_SESSION['new-mozos'] as $index=>$mozoSpecies) {
echo "
<label for='$index'>Name your mozo</label> <input type='text' name='$index' value='$mozoSpecies'/>
";
}?>
<input type="submit" value="Looks Good!"/>
</form>
</main>
<?php include_once("includes/footer.php"); ?>
</body>