Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modify password function incomplete

Status
Not open for further replies.

styx218

Programmer
Apr 23, 2007
15
0
0
IE
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top