Great Templates

FEATURED WEB TEMPLATES

Amazon Books

Learn PHP

PHP Training
Zend Cert Training Zend Certified Engineer Zend PHP Pro

Microsoft FrontPage: Create The Password Protected Page In Frontpage

Create the password-protected page

The page in this step is the same as the nonsecure Web page that you created previously, except that you must add the following line of code near the top of the page:

When you add this line of code to an ASP Web page, that page becomes password-protected by the logon.inc file that you create. To create a password-protected Web page, follow these steps:

1.

In FrontPage 2003, click the Create a new normal page button.

2.

At the footer area of the document window, click Code to show code view.

3.

Select and then remove all the HTML code in the Web page.

4.

Type or paste the following HTML code in the Web page.

<% @language="vbscript" %>


Password-Protected Page

Password-Protected Page


You are logged on as:
<%
If Len(Session("UID")) = 0 Then
Response.Write "You are not logged on."
Else
Response.Write "" & Session("UID") & ""
End If
%>


Back to default


5.

Right-click the new_page_1.htm tab, and then click Save.

Save the page as passwordprotect.asp in the root folder of your logon Web site.

6.

On the File menu, click Close to close the passwordprotect.asp Web page.


 


Learn PHP | Zend Certified Engineer | Zend PHP Pro | PHP Web Apps | Web Hosting Service | Low Cost Domain Names | Great Templates | Great Books | Testimonials | Tech.Articles | TOS | AUS | Home | Linux Apache MySQL PHP