can I password protect one page only/

C

Carl Zinn

Hi all,

I got my website up and running, with a home page + 5 other pages and links
between them all. I used the "personal" template in FP 2003 and it went
pretty smooth. Now I would like to add one password protected page for
members only. I need something simple as I've never done "code writing" but
hope to have a link that will simply ask for a password before going to that
restricted page. Can you help me please?

Winnie
 
G

Grijze Duif

Carl Zinn said:
Hi all,

I got my website up and running, with a home page + 5 other pages and
links between them all. I used the "personal" template in FP 2003 and it
went pretty smooth. Now I would like to add one password protected page
for members only. I need something simple as I've never done "code
writing" but hope to have a link that will simply ask for a password
before going to that restricted page. Can you help me please?

Winnie
Try this:
1. Click in FrontPage on Make a new standardpage (or something like that)
2.Click in the page (tab Code) on Code
3.Select the HTML-code and delete all.
4.Type of paste the following code:



1.
2.
3.
4. <% @language="vbscript" %>
<!--#include virtual="/logon/_private/logon.inc"-->
<html>
<head><title>Pagina met wachtwoordbeveiliging</title></head>
<body>
<h3>Pagina met wachtwoordbeveiliging</h3>
<p>U bent aangemeld als:
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>U bent niet aangemeld.</b>"
Else
Response.Write "<b>" & Session("UID") & "</b>"
End If
%>
</p>
<p><a href="default.asp">Terug naar de standaardpagina</a>
</body>
</html>
Click with the rightmousebutton on the tab "new_page_1.htm and SAVE.
5. Grijze Duif (excuses for some cyffres I can't delete them. . . . )

6. .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top