|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
<cfabort> question
I have it so if they visit a certain part of my game, a x is put into a certain field in the database..
Then I have a template with an if on it.. If that field is x - they cannot visit any page or they will get an error then <cfabort> If that field is o - they can continue with their buisness because they havent got to that point into the game Well.. the question is - how can i make it so it WILL let them go back to that page to continue.. <cfif visited is 'x'> You are stuck in the Mines. Click <a href="mines.cfm">here</a> to continue.<cfabort> </cfif> I don't want them to be able to visit any page (which its doing) except mines.cfm (which its not letting them continue with) Hope that makes sence! |
|
#2
|
|||
|
|||
|
Not sure I'm following. Based on what you wrote, if visted is 'x', then you would see the link and after that it would abort. Is this not what you are seeing?
As an aside, using <cfabort> like this probably isn't the best approach. <cfabort> is really more of a debugging tool than anything else. You might consider either having some conditional logic that replaces the abort, or throw an exception with <cfthrow>.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > <cfabort> question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|