Or even better, StructKeyExists. <!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//--------->
-----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: Monday, December 04, 2006 7:55 AM To: CF-Talk Subject: RE: Setting up a Condition Parameterexists()?! Haven't seen that in ages.. I think that should no doubt be isDefined now, I believe parameterexists is now deprecated. -----Original Message----- From: Adkins, Randy [mailto:[EMAIL PROTECTED] Sent: 04 December 2006 13:56 To: CF-Talk Subject: RE: Setting up a Condition 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> CONTROL PAGE: <tr><td align="right">Login: </font></td> <td><input type="text" name="emp_login" size="50" value="<cfoutput>#HTMLEditFormat(fldemp_login)#</cfoutput>" class="formveld"></td></tr> <tr><td align="right">Password: </font></td> <td><input type="password" name="emp_password" maxlength="20" value="<cfoutput>#HTMLEditFormat(fldemp_password)#</cfoutput>" size="20" class="formveld"></td></tr> <tr><td align="right">Level: </font></td> <td><select name="emp_level" class="formveld"> <cfset LOV = ArrayNew(1)> <cfset LOV = ListToArray(Replace("0;None;3;Admin"&"_stub_",";","_stub_;","ALL"), ";")> <cfif (ArrayLen(LOV) mod 2) EQ 0> <cfloop index="i" from="1" to="#ArrayLen(LOV)#" step="2"> <cfif LOV[i] EQ fldemp_level&"_stub_"> <option value="<cfoutput>#Replace(LOV[i],"_stub_","","ALL")#</cfoutput>" selected><cfoutput>#Replace(LOV[i+1],"_stub_","","ALL")#</cfoutput></opt ion> <cfelse> <option value="<cfoutput>#Replace(LOV[i],"_stub_","","ALL")#</cfoutput>"><cfoutp ut>#Replace(LOV[i+1],"_stub_","","ALL")#</cfoutput></option> </cfif> </cfloop> Steve LaBadie, Web Manager East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> http://www.esu.edu <http://www3.esu.edu> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:262701 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

