Forum Moderators: open
What is the javascript code I need? I tride like below, but it doesn´t work. (please explain in detail - I´m not a hacker... :-)
<td>E-mail:</font><span class="style1">*</span></td>
<td>
<input name="_email" type="text" size="30">
<td>Verify e-mail:<span class="style1">*</span></font></td>
<td>
<input name="_email2" type="text" size="30">
<script type="text/javascript">
<!--
function verify()
{ with (document.forms[0]) return (email.value == email2.value)
}
// -->
</script><form onsubmit="return verify();">
I think the code above will do what you want.
This assumes that the email fields are in the first form of the page and that verification is required when the form is submitted
Kaled.