I'm doing a web based travel authorization. Part of the form deals with travelling to embargoed countries. In the error checking, I check if they choose the radio button 'embargoed' that the country they chose is indeed on the list of embargoed countries. That check works just fine. When I flip the logic around to ensure that the country entered matches the list the code fails to work?? I've looked at it and I can find no explanation for it, so perhaps some fresh eyes will immediately pick up what I'm obviously not getting. Error 1 works fine, Error 2 is triggered when you have for example: cuba and have the radio button 'embargoed' on.
<cfif (attributes.country IS "Libya" OR attributes.country IS "Cambodia" OR attributes.country IS "Cuba" OR attributes.country IS "North Korea" OR attributes.country IS "Vietnam" OR attributes.country IS "Nicaragua") AND attributes.TripDetail IS NOT "embargo">
<p align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: Red; font-size: x-large;" font-size:="larger"><img src="images/stewardess.jpg" alt="" width="153" height="196" border="0"> </p>
<div align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: large;">
Error 1 Oops! You have indicated that you are travelling to <cfoutput>#attributes.country#</cfoutput>, which is on the embargoed list. Use the browser 'back' button to go back and choose the radio button entitled 'embargo/other'.</div>
<!--- stop processing --->
<cfabort>
</cfif>
<cfif (attributes.country IS NOT "Libya" OR attributes.country IS NOT "Cambodia" OR attributes.country IS NOT "Cuba" OR attributes.country IS NOT "North Korea" OR attributes.country IS NOT "Vietnam" OR attributes.country IS NOT "Nicaragua") AND attributes.TripDetail IS "embargo">
<p align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: Red; font-size: x-large;" font-size:="larger"><img src="images/stewardess.jpg" alt="" width="153" height="196" border="0"> </p>
<div align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: large;">
Error 2 Oops! You have indicated that you are travelling to <cfoutput>#attributes.country#, which is not on the embargoed list (or it's not spelled correctly). Use the browser 'back' button to go back and choose the radio button appropriate for #attributes.country#</cfoutput>.</div>
<!--- stop processing --->
<cfabort>
</cfif>
thanks!
Stephanie
<cfif (attributes.country IS "Libya" OR attributes.country IS "Cambodia" OR attributes.country IS "Cuba" OR attributes.country IS "North Korea" OR attributes.country IS "Vietnam" OR attributes.country IS "Nicaragua") AND attributes.TripDetail IS NOT "embargo">
<p align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: Red; font-size: x-large;" font-size:="larger"><img src="images/stewardess.jpg" alt="" width="153" height="196" border="0"> </p>
<div align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: large;">
Error 1 Oops! You have indicated that you are travelling to <cfoutput>#attributes.country#</cfoutput>, which is on the embargoed list. Use the browser 'back' button to go back and choose the radio button entitled 'embargo/other'.</div>
<!--- stop processing --->
<cfabort>
</cfif>
<cfif (attributes.country IS NOT "Libya" OR attributes.country IS NOT "Cambodia" OR attributes.country IS NOT "Cuba" OR attributes.country IS NOT "North Korea" OR attributes.country IS NOT "Vietnam" OR attributes.country IS NOT "Nicaragua") AND attributes.TripDetail IS "embargo">
<p align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: Red; font-size: x-large;" font-size:="larger"><img src="images/stewardess.jpg" alt="" width="153" height="196" border="0"> </p>
<div align="center" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: large;">
Error 2 Oops! You have indicated that you are travelling to <cfoutput>#attributes.country#, which is not on the embargoed list (or it's not spelled correctly). Use the browser 'back' button to go back and choose the radio button appropriate for #attributes.country#</cfoutput>.</div>
<!--- stop processing --->
<cfabort>
</cfif>
thanks!
Stephanie