PDA

View Full Version : View User Profile!


ramek
03-08-2006, 05:21 PM
Hello!

I am using Dreamweaver 8; I want users to be able to login using emailaddress and password, and when logged in be able to view thier profile and edit it! How can I display a specific record based on emailaddress and password? What do I need to do on the login page and the profile page? I created a "Log In User" on the login page matching form fields to table fields, and on the profile page, I did a recordset query for that table, but it just shows all the user profiles, when any user login!

Please help

THanks

Creative Insanity
03-08-2006, 06:12 PM
Use sessions and create a filter on the profile page using the active session.

ramek
03-08-2006, 08:03 PM
Do I create a session var for both EmailAddress and Password in the profile page? For the Filter, do I make it EmailAddress = session variable EmailAddress in the recordset? If so I am getting this error although there are records in the Database
Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.


Thanks Again!

Creative Insanity
03-08-2006, 08:13 PM
What language are you using?

ramek
03-08-2006, 08:16 PM
ASP

Creative Insanity
03-08-2006, 08:23 PM
Opps, sorry I do php.

ramek
03-21-2006, 07:03 PM
Problem solved!

I just added a session variable for ID and filtered results based on it!