CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Redirect after login, if no profile found

Print topic Send  topic

Author Message
Joe
Posted: 04/01/2005, 8:17 AM

I need a way to Automatically redirect a user to a profile page if they have not already filled one out. I already have the redirect part down. but how do I check first to see if they already have a profile, I am going to add a hidden field to the profile page that will Automatically insert on profile submit. SO I need something like

Should I do it with cookies, insert a cookie after the user fills out the profile. or sould I insert a True value after the user insert the record.

any help would be great. Thanks
smalloy

Posts: 107
Posted: 04/01/2005, 2:50 PM

If your capturing the profile information in a table in a database then its simple, just qury if there is data for the user in the profiles table. Say something like

Dim HasProfile
HasProfile = CCDLookUp("User_ID", "Profiles", "User_ID = " & CCGetUserID(), DBYourConnection)

If Len(HasProfile) < 1 Then
Redirect to make user fill out profile
Else
Redirect to wherever you want
End if


I hope this is what you are asking for and that it helps you.
_________________
Anything can be done, just give me time and money.
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.

MS Access to Web

Convert MS Access to Web.
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.