That only works however if the user hasn't turned off JavaScript.  

--K

-----Original Message-----
From: Peter Tilbrook [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 29, 2000 8:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: IsDefined help


If you use "CFFORM" with "CFINPUT" you can ensure that they at least enter
something. eg:

<cfform method="post" action="lookup_password.cfm" name="retrieve_password"
enctype="multipart/form-data">
<h4>Retrieve Password</h4>
<p>Email Address:</p> 
<p><cfinput name="EmailAddress" type="text" size="20" required="yes"
message="Please enter your Email Address.">
<input type="submit" name="submitbutton" value="Retrieve Password"> 
</cfform>

Peter Tilbrook
Internet Applications Developer
Aspect Computing Pty. Ltd.
19-25 Moore Street
Turner, ACT, 2612
AUSTRALIA

http://www.aspect.com.au

Phone: (02) 6247 7677
Fax: (02) 6249 1620
Mobile: 0428 765 020

ACT ColdFusion Users Group - http://203.37.24.198


-----Original Message-----
From: Joel Blanchette [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 30 August 2000 12:33
To: [EMAIL PROTECTED]
Subject: IsDefined help


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C01200.C3750520
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello everyone....I am having some stupid problems with a simple =
command.  I am to make a check on a form field and if it is not defined =
to write something.  i tried the following with no success...Hope =
someone can help.

<CFIF NOT IsDefined("form.name")>
    You forgot your name
</CFIF>

I also tried

<CFIF IsDefined("form.name") EQ "FALSE">
    You forgot your name
</CFIF>

but still with no success...Hope someone can help me out!!!

Thanks...

Joel

------=_NextPart_000_0005_01C01200.C3750520
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hello everyone....I am having some stupid problems =
with a=20
simple command.&nbsp; I am to make a check on a form field and if it is =
not=20
defined to write something.&nbsp; i tried the following with no =
success...Hope=20
someone can help.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>&lt;CFIF NOT IsDefined("form.name")&gt;</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; You forgot your name</FONT></DIV>
<DIV><FONT size=3D2>&lt;/CFIF&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>I also tried</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2>&lt;CFIF&nbsp;IsDefined("form.name") EQ=20
"FALSE"&gt;</FONT></DIV>
<DIV><FONT size=3D2>&nbsp;&nbsp;&nbsp; You forgot your name</FONT></DIV>
<DIV><FONT size=3D2>&lt;/CFIF&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>but still with no success...Hope someone can help me out!!!</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks...</DIV>
<DIV>&nbsp;</DIV>
<DIV>Joel</DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C01200.C3750520--

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to