1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <meta charset="utf-8"/>
4 <title>GameStick activation: Profile</title>
12 <h1>PlayJam GameStick activation: Profile</h1>
13 <form method="post" action="activate.php">
14 <input type="hidden" name="code" value="<?= htmlspecialchars($code) ?>"/>
16 <?php if ($input['submit'] && count($errors)): ?>
17 <div style="color: red">
20 <?php foreach ($errors as $msg): ?>
21 <li><?= htmlspecialchars($msg) ?></li>
28 <label for="gamerTag">Gamer tag:</label>
29 <input id="gamerTag" name="gamerTag" type="text"
30 value="<?= htmlspecialchars($input['gamerTag']) ?>"
31 pattern="[a-zA-Z0-9 ]+"
33 title="Allowed: A-Z, a-z, 0-9, space"
39 <input id="founderFlag" name="founderFlag" type="checkbox"
41 <?php if ($input['founderFlag']) { echo 'checked=""';} ?>
48 <label for="founderName">Founder name:</label>
49 <input id="founderName" name="founderName" type="text"
50 value="<?= htmlspecialchars($input['founderName']) ?>"
51 pattern="[a-zA-Z0-9 ]*"
52 title="Allowed: A-Z, a-z, 0-9, space"
57 <label>Show games suitable for ages:</label>
59 <input type="radio" name="minAge" value="3"
60 <?php if ($input['minAge'] == 3) { echo 'checked=""';} ?>
66 <input type="radio" name="minAge" value="7"
67 <?php if ($input['minAge'] == 7) { echo 'checked=""';} ?>
73 <input type="radio" name="minAge" value="12"
74 <?php if ($input['minAge'] == 12) { echo 'checked=""';} ?>
80 <input type="radio" name="minAge" value="17"
81 <?php if ($input['minAge'] == 17) { echo 'checked=""';} ?>
88 <label>Avatar image:</label>
89 <?php foreach ($avatars as $key => $smallImagePath): ?>
91 <input type="radio" name="avatar" value="<?= htmlspecialchars($key) ?>"
92 <?php if ($input['avatar'] == $key) { echo 'checked=""';} ?>
94 <img src="<?= htmlspecialchars($smallImagePath) ?>"
95 alt="Avatar <?= htmlspecialchars($key) ?>"
96 width="118" height="118"
103 <button name="submit" value="1" type="submit">Submit</button>