the problem looks like your if then statement is wrong
if x = 5 and y = 5 and x2 = 5 and y2 = 5 then
set the membernum of sprite 1 to 5
else
put "yo yo yo" into field "this_feild"
set the blend of sprite 4 to 0

not

if x and y and x2 and y2 = 5 then
set the membernum of sprite 1 to 5
else
put "yo yo yo" into field "this_feild"
set the blend of sprite 4 to 0

for a cfreference it would be: 
<cfif #form.item1# eq 0 and #form.item2# eq 0 and #form.item3# eq 0>
No items selected
<cfabort>
<cfelse>
</cfif>

n
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 20, 2000 3:12 PM
To: [EMAIL PROTECTED]
Subject: validating cfselect form... [CF-Talk]


Am fairly new to CF, but this seems to be terribly easy problem (if that
were the case i suppose i wouldn't be sending this).  Have a simple form
with general mailing address info and multiple SELECT drop-down boxes for
various items, once selections are made sends off basic email.  Problem
comes when trying to validate that the user has in fact selected at least
one item on the form.  Tried using:

   <CFIF #FORM.Item1# AND #FORM.Item2# AND #FORM.Item3#...... EQ "0">ERROR!
No items selected.
      <CFABORT>
   </CFIF>

I'm using CFSELECT on my form page with all values set to 0.  Trying to
avoid users from submitting empty requests. The form is being submitted
apparently regardless of this beginning IF statement and processing the
CFMAIL anyway.  Any suggestions....comments... have been told that CFABORT
isn't necessarily a 'good' tag and have questioned whether or not CFTRY,
CATCH, THROW or CFCASE/SWITCH may be appropriate, but seems too simple to
use these.

Mark
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
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/cf-talk@houseoffusion.com/
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