Sorry about not doing that before.
The Javascript portion looks like this:
<script LANGUAGE="Javascript">
<!--
function form_validator(theForm)
{
if (theForm.username.value == theForm.struser.value)
{
alert("The USERNAME & EMAIL ADDRESS already exists in
GATEKEEPER.");
theForm.username.focus();
return false;
}
}
//-->
</script>
The HTML portion for the hidden field looks like this:
<tr>
<td width="10"> </td>
<td align="center" colspan="7"><font face="arial, helvetica, sans-serif"
size="2">
<input type="submit" value="Add New Record" name="submit">
<input type="hidden" value="<%=struser%>" name="struser"></font></td>
</tr>
HTH
> This message is in MIME format. Since your mail reader does not
understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C2183B.1926DE70
Content-Type: text/plain;
charset="iso-8859-1"
Hi Melinda,
Could you please post the code so that I can have a look how you did it?
Cheers,
Claudio
Subject: Re: How do I use variable to compare to a form field in JS?
From: "Melinda Savoy" <msavoy@h...>
Date: Wed, 19 Jun 2002 18:12:27
X-Message-Number: 4
Resolved my problem by appending a .value in my javascript code for the
hidden field and identifying the hidden field in the javascript code as
well.
BMRB International
http://www.bmrb.co.uk +44 (0)20 8566 5000
____________________________________________________________
This message (and any attachment) is intended only for the recipient and
may
contain confidential and/or privileged material. If you have received this
in error, please contact the sender and delete this message immediately.
Disclosure, copying or other action taken in respect of this email or in
reliance on it is prohibited. BMRB International Limited accepts no
liability in relation to any personal emails, or content of any email
which
does not directly relate to our business.
------_=_NextPart_001_01C2183B.1926DE70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE> Re: How do I use variable to compare to a form field in =
JS?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>Hi Melinda,</FONT>
</P>
<P><FONT SIZE=3D2>Could you please post the code so that I can have a =
look how you did it?</FONT>
</P>
<P><FONT SIZE=3D2>Cheers,</FONT>
</P>
<P><FONT SIZE=3D2>Claudio</FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=3D2>Subject: Re: How do I use variable to compare to a =
form field in JS?</FONT>
<BR><FONT SIZE=3D2>From: "Melinda Savoy" =
<msavoy@h...></FONT>
<BR><FONT SIZE=3D2>Date: Wed, 19 Jun 2002 18:12:27</FONT>
<BR><FONT SIZE=3D2>X-Message-Number: 4</FONT>
</P>
<P><FONT SIZE=3D2>Resolved my problem by appending a .value in my =
javascript code for the </FONT>
<BR><FONT SIZE=3D2>hidden field and identifying the hidden field in the =
javascript code as </FONT>
<BR><FONT SIZE=3D2>well.</FONT>
</P>
<P><FONT SIZE=3D2> </FONT>
</P>
<BR>
<P><FONT SIZE=3D2>BMRB International </FONT>
<BR><FONT SIZE=3D2><A HREF=3D"http://www.bmrb.co.uk" =
TARGET=3D"_blank">http://www.bmrb.co.uk</A> +44 (0)20 8566 5000 </FONT>
</P>
<P><FONT =
SIZE=3D2>____________________________________________________________ =
</FONT>
<BR><FONT SIZE=3D2>This message (and any attachment) is intended only =
for the recipient and may contain confidential and/or privileged =
material. If you have received this in error, please contact the sender =
and delete this message immediately. Disclosure, copying or other =
action taken in respect of this email or in reliance on it is =
prohibited. BMRB International Limited accepts no liability in relation =
to any personal emails, or content of any email which does not directly =
relate to our business.</FONT></P>
</BODY>
</HTML>
------_=_NextPart_001_01C2183B.1926DE70--