Click to See Complete Forum and Search --> : javascript forms


fridge2003
04-01-2003, 07:10 PM
is ther anything wrong with this peice of code...i cant wor it out

<form name="form2" action=http://cmlotto.netfirms.com/cgi-bin/password.cgi>
<center><font face=Arial>Username:<input type=text name="poop" size=15>
Password:</font><input type=password name="answer2" size=15> </center>
<input type=hidden name="password">
<INPUT TYPE=hidden NAME=function VALUE=post>
<p align=center>
<input type=submit value=Login onclick="this.document.form2.password.value = this.document.form2.poop.value + '_' + this.document.form2.answer2.value;" style="font-family: Arial; color: #000000; font-weight: bold">
</p>
</form>

requestcode
04-01-2003, 08:51 PM
You do not need to use the word "this". Remove that and it should work. Using "this" in that context is referring to the form element that the onCLick event is in.