On the action Page wrap up the conditions by determining if the
form.emp_level exists:

<cfif parameterexists(form.emp_level) and form.emp_level EQ 'admin'>
        <!--- Check Login --->
<cfelse>
        <!--- No Login Required --->
</cfif> 

-----Original Message-----
From: Steve LaBadie [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 04, 2006 8:50 AM
To: CF-Talk
Subject: Setting up a Condition

I have an admin panel for entering employees into a directory.  Several
staff people will have admin rights. In my conditions how do I check
"if" admin is selected in dropdown you must supply login and password
info "if" none is selected no error message.

 

ACTION PAGE:

<cfif fldemp_login EQ "">

 <cfset sempsErr = sempsErr & "The value in field Login is
required.<br>">

</cfif>

<cfif fldemp_password EQ "">

<cfset sempsErr = sempsErr & "The value in field Password is
required.<br>">

</cfif>

<cfif fldemp_level EQ "">

<cfset sempsErr = sempsErr & "The value in field Level is
required.<br>">

</cfif>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262699
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to