How to Create a Login Page in FrontPage

How to Create a Login Page in FrontPage thumbnail
Login pages protect your information from prying eyes.

Websites that require a monthly fee or have sections for specific users need a login page to give users access. Microsoft FrontPage allows users to create and maintain these login pages with little hassle. Login pages require a database for the user names and passwords, which FrontPage creates for you.

Instructions

  1. Create the Database

    • 1

      Open FrontPage and select the "File" tab. Chose "One Page Website" under the "New Website" section. Even if you already have your website designed in FrontPage, the database must be set up as a new site. You can add it to your site later.

    • 2

      Click on the "General" tab to open the pull-down menu. Select "Database Interface Wizard" and click the "OK" button.

    • 3

      Chose "ASP" from the list and click on "Use Database Connection." Several windows will pop up. Click "Next" in the first four windows. Click on "Database Editor" and select "Next" again.

    • 4

      Type in the administrator's user name and password and then select "Finish." A window will open asking you to save. Rename the Index.htm file index.asp and save the database in the file for your website.

    Designing the Login Page

    • 5

      Select "Open" from the file menu. Type "Sample_interface\Categories\editor\Edit.asp" in the box provided. Click the "Open" button. Your login page should open in the edit window.

    • 6

      Chose "Code View" from the choices at the bottom of the screen. Make sure you are on the index.asp page. The name of the page is located at the top or bottom of the edit box, depending on the version of FrontPage you are using. At the top of the page type:

      <!--#include File='login.asa'-->

      <%

      If Session(SiteID) <> true Then

      Response.Redirect("Login.asp?requester=edit.asp")

      End If

      %>

    • 7

      Click "Open" in the "File" menu and select "Edit.asp." Open the code view and change the code on line four to: Response.Redirect("Login.asp?requester=index.asp"). The original code looks like this: Response.Redirect("Login.asp?requester=edit.asp").

    • 8

      Change the view to design view. Remove the links to the default database and replace them with the sample database you created. Highlight the links and hit the "Backspace" or "Delete" key on your keyboard to remove them.

    • 9

      Click on "Sample_Interface" to expand it. Open "Categories" and "Editor." Drag the Lagin.asa, Login_validate.asp and Login.asp files to the websites root folder.

    • 10

      Open the Login_Validate.asp file and view the code. Find line 20 and remove database_editor.asp and replace it with Index.asp.

    • 11

      Remove the Simple_Interface, Global.asa, fpdb and _Fpclass from the root folder. These files are not needed once the login page is created.

    • 12

      Open the login.asa file to change usernames and passwords.

Related Searches:

References

Resources

  • Photo Credit computer image by PinkShot from Fotolia.com

Comments

You May Also Like

Related Ads

Featured