Copy link to clipboard
Copied
Hi,
I am help develop a page for one of our classes at our school. Is there a way that when you create a login form and authenticate to a new page that the username also get forwarded to a recordset so that it can be used to fill hidden fields of other forms on the new page?
Yes. If you're using the built in DW login behavior, DW will place the user name in a session variable. Look carefully in the login code to see what this variable is called. If you're using ASP this session variable is called MM_Username. In PHP, there is a counterpart, but I can't recall at this time what it's called. If the page with the recordset is to only display data from that user, filter the recordset on the user name column using the Session variable parameter, and enter the name of the
...Copy link to clipboard
Copied
Yes. If you're using the built in DW login behavior, DW will place the user name in a session variable. Look carefully in the login code to see what this variable is called. If you're using ASP this session variable is called MM_Username. In PHP, there is a counterpart, but I can't recall at this time what it's called. If the page with the recordset is to only display data from that user, filter the recordset on the user name column using the Session variable parameter, and enter the name of the session variable in the text box.
Copy link to clipboard
Copied
Thanks, this worked exactly the way I need it to!
Copy link to clipboard
Copied
You're welcome. I'm glad you were able to decipher my instructions!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now