If its a textbox, it is already defined. What you need to do, is check to
see if it caontains anything. So if it doesn't 

<cfif form.name eq "">
 take care of nothing entered
<cfelse>
 continue processing
</cfif>


regards

Andrew Scott
ANZ eCommerce Centre
* Ph 9273 0693  
* [EMAIL PROTECTED]


-----Original Message-----
From: Joel Blanchette [mailto:[EMAIL PROTECTED]]
Sent: 30 August 2000 13: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.

Reply via email to