Answered
Page security, please help
Hello;
I am trying to come up with a script that will lock you out of a page if you do not use the proper criteria. It is a search for a site, and I set it up right now so that if you try and get to the result page without using a form, it gives you a message and a new search box. This works fine.
What happens now is if you preform a search and it comes back with lets say 9 records, I have the next / previous set to allow 3 per page, when you click next it comes back and gives the message I set you to get if you didn't use a form button.
How do I make this security tag work with both the next previous and using a form button?
(If I don't lock it down like this, and you access the page directly, you get errors, so I need to make the user use the page the way I set it.)
This is my script:
<cfif NOT isDefined('form.submit')>
You get this telling to to try again
<cfelse>
this runs the cod on the page
</cfif>
The link I am trying to allow to pass this uses this:
http://www.mysite.com/result.cfm?startRow=4
What can I add to this script to make both of these senarios pass?
Thank you.
CFmonger
I am trying to come up with a script that will lock you out of a page if you do not use the proper criteria. It is a search for a site, and I set it up right now so that if you try and get to the result page without using a form, it gives you a message and a new search box. This works fine.
What happens now is if you preform a search and it comes back with lets say 9 records, I have the next / previous set to allow 3 per page, when you click next it comes back and gives the message I set you to get if you didn't use a form button.
How do I make this security tag work with both the next previous and using a form button?
(If I don't lock it down like this, and you access the page directly, you get errors, so I need to make the user use the page the way I set it.)
This is my script:
<cfif NOT isDefined('form.submit')>
You get this telling to to try again
<cfelse>
this runs the cod on the page
</cfif>
The link I am trying to allow to pass this uses this:
http://www.mysite.com/result.cfm?startRow=4
What can I add to this script to make both of these senarios pass?
Thank you.
CFmonger
