CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Bypass Login After Registration

Print topic Send  topic

Author Message
mbennie
Posted: 01/19/2002, 5:08 PM

How can I allow a user to bypass the login page after registering?
Jeremy
Posted: 01/19/2002, 9:45 PM

Put this code in your "after insert" event of your registration page.

Session("UserID") = CStr(DLookUp("members", "member_id", "member_login =" & ToSQL(fldmember_login, "Text")))
Session("UserRights") = 1

Once again...you need to make sure and put your fields in place of the member fields here if yours are different.
cya
Jeremy
andrew
Posted: 09/11/2003, 10:33 AM

This does not work for me. fldUser_Name is undefined. I read the documentation, I read several articles on this board that say this should work. When I switch the flrUser_Name for the actual control (admins.User_Name.Value) then it says the ToSQL is an undefined variable...PLEASE HELP!!!!! AAAACCCKKKKKKKKKKKK deadlines

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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