Technology, Web & Business Forum

You are here: Technology, Web & Business Forum : Web Development : Programming : ColdFusion, How do I stop user from entering an id in the url and redired


Welcome to the Technology, Web & Business Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.


Programming Discuss programming languages such as .NET, PHP, PERL, ASP, ColdFusion, C++


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2008
Junior Member
 
Join Date: Apr 2008
Posts: 6
Default ColdFusion, How do I stop user from entering an id in the url and redired

them to a home page? <cfquery name="GetInfo" datasource="DB">
SELECT
*
FROM
blah blah blah...
WHERE
newsID = #Val(postID)#

</cfquery>


I would like to know how to stop users from entering an invalid postID in the URL

Ex: ../post.cfm?postID=4

I only have four post as of now, I don't want anyone to change the URL to postID=5(or any other number other then 1 to 4) and go to a blank templete page.
__________________
Powered by Yahoo! Answers
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 09:38 AM.