Hi Guys,
Im developing a function to allow users to modify there passwords.im having a little trouble finishing it off,can anyone give any pointers?
Simple form to take parameters
form name = "passwordform" action = "LoginServlet" method = post>
<input type="hidden" name="ACTION value="MODIFY_PASSWORD" />
<table cellspacing="0">
<tr>
<td><b>Enter your CURRENT password</b></td>
<td><input type="password" name="current_pass" value="" /></td>
</tr>
<tr>
<td><b>Enter your NEW password</b></td>
<td><input type="password" name="new_pass_1" value="" /></td>
</tr>
<tr>
<td><b>Please confirm your NEW password</b></td>
<td><input type="password" name="new_pass_2" value="" /></td>
<td><input type="button" value="Modify" onclick="modifyTeam('${//not sure about here}')" /></td>
</tr>
</table>
</form>
The function will look something like this
<script type="text/javascript" >
var modify = document.passwordform;
modify.ACTION.value = "PASSWORD_MODIFY";
modify.password.value = password;
var // to hold both values
var name = modify.elements[].value//?
modify.name.value = name;
modify.submit();
</script>
Any ideas?
Im developing a function to allow users to modify there passwords.im having a little trouble finishing it off,can anyone give any pointers?
Simple form to take parameters
form name = "passwordform" action = "LoginServlet" method = post>
<input type="hidden" name="ACTION value="MODIFY_PASSWORD" />
<table cellspacing="0">
<tr>
<td><b>Enter your CURRENT password</b></td>
<td><input type="password" name="current_pass" value="" /></td>
</tr>
<tr>
<td><b>Enter your NEW password</b></td>
<td><input type="password" name="new_pass_1" value="" /></td>
</tr>
<tr>
<td><b>Please confirm your NEW password</b></td>
<td><input type="password" name="new_pass_2" value="" /></td>
<td><input type="button" value="Modify" onclick="modifyTeam('${//not sure about here}')" /></td>
</tr>
</table>
</form>
The function will look something like this
<script type="text/javascript" >
var modify = document.passwordform;
modify.ACTION.value = "PASSWORD_MODIFY";
modify.password.value = password;
var // to hold both values
var name = modify.elements[].value//?
modify.name.value = name;
modify.submit();
</script>
Any ideas?