Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 15th, 2003, 12:17 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default How do I store user login info to use in a form?

I'm not sure how to call the user info, so that I can use in a form!

User log's on and when entering data in one of the form pages I would like to have his user info come up and store in the database along with data thats entered?

and will this work with multiple login by user in an intrant?

Thanks

Dan
 
Old July 15th, 2003, 08:06 PM
Friend of Wrox
Points: 2,376, Level: 20
Points: 2,376, Level: 20 Points: 2,376, Level: 20 Points: 2,376, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Australia.
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Dan,
I think you are after session variables!
For example to store the users name in a session variable when they log in use:

session("userName") = rs("userName")

where rs is the record set you are checking the name and password against.
To display the user name from a session variable you only have to

<%= session("userName")%>

If this does not answer your question, please give us some more information.

Rod




Similar Threads
Thread Thread Starter Forum Replies Last Post
Grabbing user login info Quick209 ASP.NET 2.0 Basics 1 May 12th, 2006 07:06 PM
login failed for user nt authority\anonymous login rj1406 Classic ASP Databases 1 October 24th, 2004 09:15 AM
HttpContext.Current.Cache used to store user info? flyin General .NET 11 April 6th, 2004 03:57 PM
Store info into a MySQL DB table KoRn PHP How-To 1 February 17th, 2004 03:00 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.