I have a page which accepts several url variables.  I want to make sure
if someone manipulated the url in the browser and set the value outside
what is handled by the page that this is handled.

I was thinking I could check for the existence of the url variable and
then if set check for the value not being what I am accepting.  If the
value is not what I am expecting I take corrective action.

I am at a lose to figure out how you handle the 'if it's not what I am
expecting ' as opposed to the 'I am expecting this, do that'

Below is my failed attempt.  Any advice?

Thanks,

John

<!--- Catch ChartType values outside the range that are accepted by this
page --->

<cfif IsDefined("URL.ChartType") AND url.ChartType NEQ "pie"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "bar"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "line"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "pyramid"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "area"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "cone"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "curve"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "cylinder"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "step"

or

IsDefined("URL.ChartType") AND url.ChartType NEQ "scatter">

<cflocation
url=""> addtoken="no">

</cfif>

<!--- End Catch ChartType values outside the range that are accepted by
this page --->


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to