Add User Form - Confirm password
Posted: Wed Jan 26, 2011 12:22 am
Hi all
Am doing a php form to add user and the code as below:
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Staff Name:</td>
<td><input type="text" name="STAFFNAME" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Username:</td>
<td><input type="text" name="USERNAME" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Password:</td>
<td><input type="password" name="USERPASSWORD" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Confirm Password</td>
<td><input name="CFMPW" type="password" id="CFMPW" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Add User" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form></td>
The mysql table has these fields:
USER_ID, STAFFNAME, USERNAME, USERPASSWORD
Problem is that how can i implement the 'confirm password' on the form to check on the password keyed by user.
Would greatly appreciate if anyone could give me some pointers. Thanks.
Am doing a php form to add user and the code as below:
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center">
<tr valign="baseline">
<td nowrap="nowrap" align="right">Staff Name:</td>
<td><input type="text" name="STAFFNAME" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Username:</td>
<td><input type="text" name="USERNAME" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Password:</td>
<td><input type="password" name="USERPASSWORD" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Confirm Password</td>
<td><input name="CFMPW" type="password" id="CFMPW" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Add User" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form></td>
The mysql table has these fields:
USER_ID, STAFFNAME, USERNAME, USERPASSWORD
Problem is that how can i implement the 'confirm password' on the form to check on the password keyed by user.
Would greatly appreciate if anyone could give me some pointers. Thanks.