This is a discussion on "return from db" within the Classic ASP section. This forum, and the thread "return from db are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
return from db
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
return from db
hi
i have set up a page which uses a session ID. (username under the db) How do i write asp code to get the session and then select all the details in that record for use in hidden email fields. cheers |
|
|
|
#2
|
|||
|
|||
|
Hi
Could you please explain a bit more. Where is the Session ID coming from? How does the session ID relate to the persons details in the database? Are you saying that you are generating your own session ID's and have your own state management tool? Or are you saying that a person logs in, and you store their username or some other PK in the session object, and from that you need to get their details from the database? |
|
#3
|
|||
|
|||
|
hi
sorry i wasnt very clear was i it twas the latter, i didnt know there was other session types in asp sombody logs in - the session is the username in the db, but i have a link to another page. what i want is the session id to be checked with the records in the db so i can have them as values in hidden form fields. hope that clarified it thanks |
|
#4
|
|||
|
|||
|
I haven’t got it clearly make it clear may be I can help!
|
|
#5
|
|||
|
|||
|
sorry - again!
ok - i have a login page. user logs in (details in db)and a session is created (username) i have a link to another page here i want to check the session name and then get the details for that username from the db such as full name, email address etc i wana use these details in hidden fields (not important but i added it) hope thts simple enogh thanks |
|
#6
|
|||
|
|||
|
ive sorted it out now anyway
|
![]() |
| Tags |
| return |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Return column names in SQL using PHP | nate2099 | Databases | 7 | Dec 21st, 2007 14:57 |
| The Return of Basic HTML??? | ScottR | Webforumz Cafe | 0 | Aug 8th, 2007 13:38 |
| 'Return to top' trouble? | Kymberly | PHP Forum | 3 | Aug 3rd, 2006 15:49 |
| ASP ADO Connection to return XML from SQL Proc | NickyJ | Classic ASP | 2 | Aug 11th, 2005 11:39 |
| Return to previously viewed screen | Imara96 | Flash & Multimedia Forum | 5 | Apr 23rd, 2005 22:18 |