<script type="text/javascript">
//<![CDATA[
function validate_(frm) {
  var value = '';
  var errFlag = new Array();
  var _qfGroups = {};
  _qfMsg = '';
 
  value = document.forms.users.thisPasswordField.value;
  if (value != '' && value.length < 6) {
    errFlag['pass'] = true;
    _qfMsg = _qfMsg + '\n - ERROR: Password too short';
  }
 
  valueC = document.forms.users.confirmpass.value;
  if (value != valueC) {
    errFlag['pass'] = true;
    _qfMsg = _qfMsg + '\n - Erreur: vous n\'avez pas entré le même mot de passe';
  }
 
 
 
  if (_qfMsg != '') {
    _qfMsg = 'Le formulaire n'a pas été soumis à cause des erreurs suivantes' + _qfMsg;
    _qfMsg = _qfMsg + '\nMerci de corriger:';
    alert(_qfMsg);
    return false;
  }
  return true;
}
//]]>
</script>
<h2> Mettre à jour  Users</h2>
<form name="users" method="POST" action="updateUsers.php" onsubmit="try { var myValidator = validate_; } catch(e) { return true; } return myValidator(this);">
 
<table cellspacing="2" cellpadding="2" border="0" width="100%">
	<tr valign="top" height="20">
		<td align="right"> <b> User_name :  </b> </td>
		<td> <? echo $thisUser_name; ?> </td> 
	</tr>
	<tr valign="top" height="20">
		<td align="right"> <b> Password :  </b> </td>
		<td> <input type="text" name="thisPasswordField" size="20" value="<? echo $thisPassword; ?>">  </td> 
	</tr>
 
 
<tr>
		<td align="right" valign="top"><span style="color: #ff0000">*</span><b>Confirm password:</b></td>
		<td valign="top" align="left">	<input size="30" name="confirmpass" type="password" /></td>
	</tr>
 
	<tr valign="top" height="20">
		<td align="right"> <b> Role :  </b> </td>
		<td> <input type="text" name="thisRoleField" size="20" value="<? echo $thisRole; ?>">  </td> 
	</tr>
</table>
 
<input type="submit" name="submit Mettre à jour UsersForm" value=" Mettre à jour  Users">
<input type="reset" name="resetForm" value=" Effacer la Forme ">
 
</form>
  • info/js_password_confirmation.txt
  • Dernière modification: 2018/07/18 09:45
  • par radeff