Building a login page – Adobe Dreamweaver CC 2014 v.13 User Manual
Page 572

Building a login page
Note: The user interface has been simplified in Dreamweaver CC and later. As a result, you may not find some of the options described in this
article in Dreamweaver CC and later. For more information, see
.
About login pages
Your web application can contain a page that lets registered users log in to the site.
A login page is made up of the following building blocks:
A database table of registered users
An HTML form to let users enter a user name and password
A Log In User server behavior to make sure the entered user name and password are valid
A session variable consisting of the user name is created for the user when the user logs in successfully.
Create a database table of registered users
You need a database table of registered users to verify that the user name and password entered in the login page are valid.
Use your database application and a registration page to create the table. For instructions, see the related topic link below.
The next step in building a login page is to add an HTML form to the page to let users log in. See the next topic for instructions.
Add an HTML form to let users log in
You add an HTML form to the page to let users log in by entering a user name and password.
1. Create a page (File > New > Blank Page), and lay out your login page using the Dreamweaver design tools.
2. Add an HTML form by placing the insertion point where you want the form to appear and choosing Form from the Insert menu.
An empty form is created on the page. You may have to enable Invisible Elements (View > Visual Aids > Invisible Elements) to see the
form’s boundaries, which are represented by thin red lines.
3. Name the HTML form by clicking the