Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 with 5 additions and 6 deletions.
  1. +5 −6 index.php
11 index.php
@@ -18,7 +18,7 @@
<script type="text/javascript" src="check.js"></script>
+<body onload="document.getElementById('userid').focus();">
<div id="page-wrap">
@@ -30,16 +30,15 @@
<form method="post" action="jumpin.php">
<label>Desired Username:</label>
- <input type="text" id="userid" name="userid" />
- <input type="submit" value="Check" id="jumpin" />
+ <input type="text" id="userid" name="userid" value="<?php if (isset($_GET['user'])){ echo $_GET['user'];}?>" />
<div id="status">
- <?php if (isset($_GET['error'])): ?>
- <!-- Display error when returning with error URL param? -->
- <?php endif;?>
+ <?php if ($_GET['error']==1): ?>
+ <div class='message warning'>This nickname is in use. (Nicknames take 2 minutes of no use to expire)</div>
+ <?php endif;?>
Please sign in to comment.
Something went wrong with that request. Please try again.