<form name="form1" action="admin_users.php" method="POST" onSubmit="return validateForm();"> <input type="hidden" name="request" id="request" value="" /> <input type="hidden" name="stage" id="stage" value="" /> <input type="hidden" name="user_id" id="user_id" value="" /> <table> <tr> <td>Username:<span class="required">*</span></td> <td><input type="text" name="user_name" id="user_name" value=""></td> </tr> <tr> <td>Password:<span class="required">*</span></td> <td> <input type="password" name="user_password" id="user_password" value="" onKeyUp="checkPasswordStrength();"> <div id="password_strength" style="display: inline; position: absolute; margin-left: 5px;"> <span id="password_strength_0" style="display: none; color: yellow;">Weak</span> <span id="password_strength_1" style="display: none; color: orange;">Medium</span> <span id="password_strength_2" style="display: none; color: red;">Strong</span> </div> </td> </tr> <tr> <td colspan="2"> <span class="note" id="note_add" style="display: none;">Password must have 7 characters, at least one<br /> of which is a number and one a letter.</span> <span class="note" id="note_edit" style="display: none;">Only enter a value for password if you are changing<br /> it for the user, otherwise leave it blank.</span> </td> </tr> <tr> <td>Email:<span class="required">*</span></td> <td><input type="text" name="user_email" id="user_email" value=""></td> </tr> <tr> <td>First Name:</td> <td><input type="text" name="user_first_name" id="user_first_name" value=""></td> </tr> <tr> <td>Last Name:</td> <td><input type="text" name="user_last_name" id="user_last_name" value=""></td> </tr> <tr> <td>Expire Date:</td> <td><input type="text" name="user_expire_date" id="user_expire_date" value=""></td> </tr> <tr> <td colspan="2"> <input type="checkbox" name="user_never_expires" id="user_never_expires" onChange="updateExpireDateEnabled();"> Check this box if user account never expires. </td> </tr> </table> <p> <input type="submit" name="submit" id="submit" value="Submit" /> <input type="button" name="cancel" id="cancel" value="Cancel" onClick="location.href='admin_users_list.php';" /> </p> <!-- <p style="cursor: pointer; background-color: blue;" onClick="location.href='admin_user.php?request=xml&stage=edit';">XML</p> --> </form>