Just to let you know, if form.name is a text field, it will always pass that
field as a parameter. However, it will be an empty string. So you can't
check for it by isDefined("form.name") because it does exist, just as an
empty string.
Try this,
<cfif Not Len(form.name)>
CODE
</cfif>
or you could do
<cfif form.name IS "">
CODE
</cfif>
HTH,
Robert Hinojosa
WebDeveloper
512.912.3775
[EMAIL PROTECTED]
www.cirrus.com
-----Original Message-----
From: Jamie Keane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 8:14 AM
To: [EMAIL PROTECTED]
Subject: Re: IsDefined help
I don't think so. I know Form.FIELDNAMES is reserved, but that's about it,
I think.
--
Jamie Keane
Programmer
SolutionMasters, Inc.
9111 Monroe Rd., Suite 100
Charlotte, NC 28270
www.solutionmasters.com
704.563.5559 x 228 Voice
704.849.9291 Fax
-----Original Message-----
From: Andy Ewings <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Wednesday, August 30, 2000 8:56 AM
Subject: RE: IsDefined help
>Just a thought....is Form.name a reserved variable? Try renaming the
>control and see what happens.
>
>-----Original Message-----
>From: Jamie Keane [mailto:[EMAIL PROTECTED]]
>Sent: 30 August 2000 13:56
>To: [EMAIL PROTECTED]
>Subject: Re: IsDefined help
>
>
>What method is the form using? To use the FORM scope a form must use the
>POST method.
>
>--
>Jamie Keane
>Programmer
>SolutionMasters, Inc.
>9111 Monroe Rd., Suite 100
>Charlotte, NC 28270
>www.solutionmasters.com
>704.563.5559 x 228 Voice
>704.849.9291 Fax
>-----Original Message-----
>From: Joel Blanchette <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>Date: Tuesday, August 29, 2000 10:34 PM
>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. I am to make a check on a form field and if it is =
>>not=20
>>defined to write something. i tried the following with no =
>>success...Hope=20
>>someone can help.</FONT></DIV>
>><DIV> </DIV>
>><DIV><FONT size=3D2><CFIF NOT IsDefined("form.name")></FONT></DIV>
>><DIV><FONT size=3D2> You forgot your name</FONT></DIV>
>><DIV><FONT size=3D2></CFIF></FONT></DIV>
>><DIV> </DIV>
>><DIV><FONT size=3D2>I also tried</FONT></DIV>
>><DIV> </DIV>
>><DIV><FONT size=3D2>
>><DIV><FONT size=3D2><CFIF IsDefined("form.name") EQ=20
>>"FALSE"></FONT></DIV>
>><DIV><FONT size=3D2> You forgot your name</FONT></DIV>
>><DIV><FONT size=3D2></CFIF></FONT></DIV>
>><DIV> </DIV>
>><DIV>but still with no success...Hope someone can help me out!!!</DIV>
>><DIV> </DIV>
>><DIV>Thanks...</DIV>
>><DIV> </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.
----------------------------------------------------------------------------
--
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.