<td> <span id="errNoEmail" <?php addVisibleStyle("noEmail", $errors); ?> >You must enter an email address.</span> <span id="errInvalidEmail" <?php addVisibleStyle("invalidEmail", $errors); ?> >Your email address is not valid.</span> </td> </tr> <tr> <td>Retype Email:</td> <td><input type="text" id="retypeEmail" name="retypeEmail" size="30" placeholder="Retype email address" required="required" <?php addOriginalValue("retypeEmail"); ?> /></td> <td><span id="errEmailMismatch" <?php addVisibleStyle("emailMismatch", $errors); ?> >Your two email addresses do not match.</span></td> </tr> </table> <input type="submit" name="btnRegister" id="btnRegister" value="Register" /> </form> <?php gtInclude("includes/foot.php"); ?> </div> </body> </html>
>Your username is too long.</span> <?php if (isset($errors['badUsername'])) { ?> <span id="errBadUsername" style="display:inline;">This username was not found in the database.</span> <?php } ?> </td> </tr> <tr> <td>Password:</td> <td><input type="password" id="password" name="password" size="22" required="required" placeholder="eg. mypassword01" /></td> <td> <span id="errLongPassword" <?php addVisibleStyle("longPassword"); ?> >Your password is too long.</span> <?php if (isset($errors['badPassword'])) { ?> <span id="errBadPassword" style="display:inline;">The entered password is incorrect for the entered username.</span> <?php } ?> </td> </tr> </table> <input type="submit" name="frmLoginBtn" id="frmLoginBtn" value="Login" /> <input type="submit" name="btnRegisterLink" id="btnRegisterLink" formaction="/users/register.php" value="Register" /> </form>