Clear Form
Posted: Sat Jun 26, 2010 3:42 pm
Hi
I have created a new form for adding a new user record to the database. The issue I am having is probably an easy one but I cannot see woods for trees:
The form loads and the last name input as well as the first password input both show the current user's details in there (password being masked). Clearly I do not want this to happen and can only assume it is pulling the data from the current session variables but I cannot see how or why; and therefore how to stop this from happening.
The base code is below:
I have created a new form for adding a new user record to the database. The issue I am having is probably an easy one but I cannot see woods for trees:
The form loads and the last name input as well as the first password input both show the current user's details in there (password being masked). Clearly I do not want this to happen and can only assume it is pulling the data from the current session variables but I cannot see how or why; and therefore how to stop this from happening.
The base code is below:
Code: Select all
<form name="adduser" method="post" action="">
<table>
<tr>
<td>Username</td>
<td><input type="text" name="txtUsername" id="txtUsername"></td>
</tr>
<tr>
<td>First/Last Name</td>
<td><input type="text" name="txtFirst" id="txtFirst"> <input type="text" name="txtLast" id="txtLast"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="txtPassword" id="txtPassword"></td>
</tr>
<tr>
<td>Retype Password</td>
<td><input type="password" name="txtPassword2" id="txtPassword2"></td>
</tr>
</table>
<p align="center">
<input type="reset" name="Reset" id="reset_btn" value=" ">
<input type="submit" name="Submit" id="saveuser_btn" value=" ">
</p>
</form>