Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to pass form variables from login page?

Posted on 2003-02-20
2
Medium Priority
?
159 Views
Last Modified: 2010-04-25
I am relatively new to web development and dreamweaver.  I have an ASP page that prompts for username and password.  I have then set the server behavior in dreamweaver to login user.  Everything seems to be working fine as far as logging in the user, but I can't figure out how to diplay the user name on the destination page.  Any help is greatly appreciated.
0
Comment
Question by:steve29
2 Comments
 
LVL 1

Accepted Solution

by:
sharptek earned 80 total points
ID: 7993711
Dreamweaver passes the username across as a session variable called Session("MM_Username"). to display your username on any destination page do the following.

1. click on data bindings tab next to the server behaviours
2. click the plus button and select session variable
3. type MM_Username in the dialogue box
4. drag the newly created variable from the bindings to the position on the page where you want your username to appear.

Alternatively you could place the following ASP code into the page code <%=MM_Username%> which is much quiker if you're into any coding at all.

The clue to how this is done by the way is revealed by looking at the code on the destination page where the user verification takes place - i.e
If Session("MM_Username") <> "" Then
0
 

Author Comment

by:steve29
ID: 7993828
That helps.  I was trying to reference it as just a variable and not a session variable.  Thank you for your help.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question