PDA

View Full Version : password protection


theco805
08-16-2005, 02:03 AM
How in dreamweaver can you protect a page requiring a password to open it???

kate
08-16-2005, 07:05 PM
Hya,
Letting users choose a user name and password
You add an HTML form to the registration page to let users choose a user name and password (if applicable).

To let users choose a user name and password:
Create a new page (File > New) and lay out your registration page using the Dreamweaver design tools.
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 turn on Invisible Elements (View > Visual Aids > Invisible Elements) to see the form’s boundaries, which are represented by thin red lines.

Name the HTML form by clicking the <form> tag at the bottom of the Document window to select the form, opening the Property inspector (Window > Properties), and entering a name in the Form Name box.
You don’t have to specify an action or method attribute for the form to tell it where and how to send the record data when the user clicks the Submit button. The Insert Record server behavior sets these attributes for you (see Updating the table of users in the database).

Add text fields (Insert > Form Objects > Text Field) to let the user enter a user name and password.
The form can also have more form objects to record other personal data.

You should add labels (either as text or images) beside each form object to tell users what they are. You should also line up the form objects by placing them inside an HTML table. For more information on form objects, see Creating Interactive Forms.

Add a Submit button to the form (Insert > Form Objects > Button).
If you wish, change the label of the Submit button by selecting the button, opening the Property inspector (Window > Properties), and entering a new value in the Label box.
For example, here’s the Property inspector of a button labeled “Register”:

Look in your DreamweaverMX help files so you can see the images they used which will help you. there are 3 pages to the tutorial.

Good luck!

:)