Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Focus on nickname input, Remove button (Return key is best), making e…

…rror work
  • Loading branch information...
commit 2c52ae2b4a48fba5cff67b51d865e9c4a4827731 1 parent 422b961
Diogo authored

Showing 1 changed file with 5 additions and 6 deletions. Show diff stats Hide diff stats

  1. +5 6 index.php
11 index.php
@@ -18,7 +18,7 @@
18 18 <script type="text/javascript" src="check.js"></script>
19 19 </head>
20 20
21   -<body>
  21 +<body onload="document.getElementById('userid').focus();">
22 22
23 23 <div id="page-wrap">
24 24
@@ -30,16 +30,15 @@
30 30 <form method="post" action="jumpin.php">
31 31 <label>Desired Username:</label>
32 32 <div>
33   - <input type="text" id="userid" name="userid" />
34   - <input type="submit" value="Check" id="jumpin" />
  33 + <input type="text" id="userid" name="userid" value="<?php if (isset($_GET['user'])){ echo $_GET['user'];}?>" />
35 34 </div>
36 35 </form>
37 36 </div>
38 37
39 38 <div id="status">
40   - <?php if (isset($_GET['error'])): ?>
41   - <!-- Display error when returning with error URL param? -->
42   - <?php endif;?>
  39 + <?php if ($_GET['error']==1): ?>
  40 + <div class='message warning'>This nickname is in use. (Nicknames take 2 minutes of no use to expire)</div>
  41 + <?php endif;?>
43 42 </div>
44 43
45 44 </div>

0 comments on commit 2c52ae2

Please sign in to comment.
Something went wrong with that request. Please try again.