CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 checking against table in a DB

Print topic Send  topic

Author Message
RES

Posts: 21
Posted: 06/06/2005, 8:00 AM

I am a codecharge/php newbie. I have a grid that should only be accessible by a user that is already registered in the database. So i need some error-handling that checks the IP address, Host Name, and User ID (auto incrementing) and if they exists then it allows them to query a table. but if they don't exist in the database it redirects to a user registration page.

Please advise. Thanks a lot.
_________________
RES
View profile  Send private message
peterr


Posts: 5971
Posted: 06/06/2005, 11:54 AM

Checking all that is not needed and probably will not help you. You probably should simply direct users to the Login page. Once they login then they will be able to access your grid page. Please use the "Restricted" property of your Grid page to specify user levels who are allowed to access that page.
Of course on the login page you can also place a link to your registration page.
You can see how this is done by going to the General -> Announcements forum on this Website. If you are not logged in then you will see the login page and will be required to login first.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.