
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. |
 |
 |
|

|
|
|
|