?
Solved

How to pass form variables from login page?

Posted on 2003-02-20
2
Medium Priority
?
156 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

771 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