Frontpage 2002 password protected page

Hi,

I have been through most of the questions and answers that kind of relate to
my question with not much success.

I want to make the "Members" page on www.blarneyquick.com password
protected. I can't change any permissions on the server my website is hosted
on as it is locked down for security issues.

So can I easily re-create 1 page userid and password protected that I can
assign multiple userid's to?

Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
good with HTML but have never used ASP and applicatiosn like that.

I know there is a Microsoft solution using ACCESS but I don't have it.

Thanks in advance, Sean.
defraine [ Fr, 11 Januar 2008 20:32 ] [ ID #1905315 ]

Re: Frontpage 2002 password protected page

See:
http://support.microsoft.com/kb/825498/en-us

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> Hi,
>
> I have been through most of the questions and answers that kind of relate to
> my question with not much success.
>
> I want to make the "Members" page on www.blarneyquick.com password
> protected. I can't change any permissions on the server my website is hosted
> on as it is locked down for security issues.
>
> So can I easily re-create 1 page userid and password protected that I can
> assign multiple userid's to?
>
> Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> good with HTML but have never used ASP and applicatiosn like that.
>
> I know there is a Microsoft solution using ACCESS but I don't have it.
>
> Thanks in advance, Sean.
tarowe [ Fr, 11 Januar 2008 20:41 ] [ ID #1905316 ]

Re: Frontpage 2002 password protected page

Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
Thanks

"Thomas A. Rowe" wrote:

> See:
> http://support.microsoft.com/kb/825498/en-us
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> > Hi,
> >
> > I have been through most of the questions and answers that kind of relate to
> > my question with not much success.
> >
> > I want to make the "Members" page on www.blarneyquick.com password
> > protected. I can't change any permissions on the server my website is hosted
> > on as it is locked down for security issues.
> >
> > So can I easily re-create 1 page userid and password protected that I can
> > assign multiple userid's to?
> >
> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> > good with HTML but have never used ASP and applicatiosn like that.
> >
> > I know there is a Microsoft solution using ACCESS but I don't have it.
> >
> > Thanks in advance, Sean.
>
>
>
defraine [ Fr, 11 Januar 2008 20:48 ] [ ID #1905318 ]

Re: Frontpage 2002 password protected page

You can create a form with the fields needed as indicated in the KB, then let FP create the Access
database for you, then you can follow the instruction in the KB article configure your site.

Your site must be hosted on a Windows IIS web server.

Note: The Kb indicates placing the database in the _private folder, this is wrong, the database need
to be in fpdb if FP doesn't automatically create it there.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> Thanks
>
> "Thomas A. Rowe" wrote:
>
>> See:
>> http://support.microsoft.com/kb/825498/en-us
>>
>> --
>> ==============================================
>> Thomas A. Rowe
>> Microsoft MVP - FrontPage
>>
>> http://www.Ecom-Data.com
>> ==============================================
>>
>>
>> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
>> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
>> > Hi,
>> >
>> > I have been through most of the questions and answers that kind of relate to
>> > my question with not much success.
>> >
>> > I want to make the "Members" page on www.blarneyquick.com password
>> > protected. I can't change any permissions on the server my website is hosted
>> > on as it is locked down for security issues.
>> >
>> > So can I easily re-create 1 page userid and password protected that I can
>> > assign multiple userid's to?
>> >
>> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
>> > good with HTML but have never used ASP and applicatiosn like that.
>> >
>> > I know there is a Microsoft solution using ACCESS but I don't have it.
>> >
>> > Thanks in advance, Sean.
>>
>>
>>
tarowe [ Fr, 11 Januar 2008 20:59 ] [ ID #1905319 ]

Re: Frontpage 2002 password protected page

Thanks Thomas, I'll give it a try.

Sean

"Thomas A. Rowe" wrote:

> You can create a form with the fields needed as indicated in the KB, then let FP create the Access
> database for you, then you can follow the instruction in the KB article configure your site.
>
> Your site must be hosted on a Windows IIS web server.
>
> Note: The Kb indicates placing the database in the _private folder, this is wrong, the database need
> to be in fpdb if FP doesn't automatically create it there.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> > Thanks
> >
> > "Thomas A. Rowe" wrote:
> >
> >> See:
> >> http://support.microsoft.com/kb/825498/en-us
> >>
> >> --
> >> ==============================================
> >> Thomas A. Rowe
> >> Microsoft MVP - FrontPage
> >>
> >> http://www.Ecom-Data.com
> >> ==============================================
> >>
> >>
> >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> >> > Hi,
> >> >
> >> > I have been through most of the questions and answers that kind of relate to
> >> > my question with not much success.
> >> >
> >> > I want to make the "Members" page on www.blarneyquick.com password
> >> > protected. I can't change any permissions on the server my website is hosted
> >> > on as it is locked down for security issues.
> >> >
> >> > So can I easily re-create 1 page userid and password protected that I can
> >> > assign multiple userid's to?
> >> >
> >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> >> > good with HTML but have never used ASP and applicatiosn like that.
> >> >
> >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> >> >
> >> > Thanks in advance, Sean.
> >>
> >>
> >>
>
>
>
defraine [ Fr, 11 Januar 2008 21:09 ] [ ID #1905322 ]

Re: Frontpage 2002 password protected page

Thomas,

Regarding creating the form, can you advise how please, I have never done a
form before. I guess the form creation creates the ACCESS part you talk of?

Thaks again.

"defraine" wrote:

> Thanks Thomas, I'll give it a try.
>
> Sean
>
> "Thomas A. Rowe" wrote:
>
> > You can create a form with the fields needed as indicated in the KB, then let FP create the Access
> > database for you, then you can follow the instruction in the KB article configure your site.
> >
> > Your site must be hosted on a Windows IIS web server.
> >
> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the database need
> > to be in fpdb if FP doesn't automatically create it there.
> >
> > --
> > ==============================================
> > Thomas A. Rowe
> > Microsoft MVP - FrontPage
> >
> > http://www.Ecom-Data.com
> > ==============================================
> >
> >
> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> > > Thanks
> > >
> > > "Thomas A. Rowe" wrote:
> > >
> > >> See:
> > >> http://support.microsoft.com/kb/825498/en-us
> > >>
> > >> --
> > >> ==============================================
> > >> Thomas A. Rowe
> > >> Microsoft MVP - FrontPage
> > >>
> > >> http://www.Ecom-Data.com
> > >> ==============================================
> > >>
> > >>
> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> > >> > Hi,
> > >> >
> > >> > I have been through most of the questions and answers that kind of relate to
> > >> > my question with not much success.
> > >> >
> > >> > I want to make the "Members" page on www.blarneyquick.com password
> > >> > protected. I can't change any permissions on the server my website is hosted
> > >> > on as it is locked down for security issues.
> > >> >
> > >> > So can I easily re-create 1 page userid and password protected that I can
> > >> > assign multiple userid's to?
> > >> >
> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> > >> > good with HTML but have never used ASP and applicatiosn like that.
> > >> >
> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> > >> >
> > >> > Thanks in advance, Sean.
> > >>
> > >>
> > >>
> >
> >
> >
defraine [ Fr, 11 Januar 2008 22:53 ] [ ID #1905329 ]

Re: Frontpage 2002 password protected page

With a web open, create a new page.

Insert Menu | Form

Click inside the dash line and then insert each field require, as indicated in the KB article.

Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
settings, select yes to correct, etc. then select Create Database.
--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> Thomas,
>
> Regarding creating the form, can you advise how please, I have never done a
> form before. I guess the form creation creates the ACCESS part you talk of?
>
> Thaks again.
>
> "defraine" wrote:
>
>> Thanks Thomas, I'll give it a try.
>>
>> Sean
>>
>> "Thomas A. Rowe" wrote:
>>
>> > You can create a form with the fields needed as indicated in the KB, then let FP create the
>> > Access
>> > database for you, then you can follow the instruction in the KB article configure your site.
>> >
>> > Your site must be hosted on a Windows IIS web server.
>> >
>> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the database
>> > need
>> > to be in fpdb if FP doesn't automatically create it there.
>> >
>> > --
>> > ==============================================
>> > Thomas A. Rowe
>> > Microsoft MVP - FrontPage
>> >
>> > http://www.Ecom-Data.com
>> > ==============================================
>> >
>> >
>> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
>> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
>> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
>> > > Thanks
>> > >
>> > > "Thomas A. Rowe" wrote:
>> > >
>> > >> See:
>> > >> http://support.microsoft.com/kb/825498/en-us
>> > >>
>> > >> --
>> > >> ==============================================
>> > >> Thomas A. Rowe
>> > >> Microsoft MVP - FrontPage
>> > >>
>> > >> http://www.Ecom-Data.com
>> > >> ==============================================
>> > >>
>> > >>
>> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
>> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
>> > >> > Hi,
>> > >> >
>> > >> > I have been through most of the questions and answers that kind of relate to
>> > >> > my question with not much success.
>> > >> >
>> > >> > I want to make the "Members" page on www.blarneyquick.com password
>> > >> > protected. I can't change any permissions on the server my website is hosted
>> > >> > on as it is locked down for security issues.
>> > >> >
>> > >> > So can I easily re-create 1 page userid and password protected that I can
>> > >> > assign multiple userid's to?
>> > >> >
>> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
>> > >> > good with HTML but have never used ASP and applicatiosn like that.
>> > >> >
>> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
>> > >> >
>> > >> > Thanks in advance, Sean.
>> > >>
>> > >>
>> > >>
>> >
>> >
>> >
tarowe [ Sa, 12 Januar 2008 00:04 ] [ ID #1905330 ]

Re: Frontpage 2002 password protected page

On Fri, 11 Jan 2008 11:48:01 -0800, defraine
<defraine [at] discussions.microsoft.com> wrote:

>Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?

Do you have Windows hosting or Unix/Linux hosting?

I have Unix hosting for most of my sites and use this method, but I
let the CPanel function "web protect" to do it for me.

http://www.euronet.nl/~arnow/htpasswd/documentation.html

You might also want to check with your host and/or explore your
domain's control panel for a password protection feature.

DJ
IdaSpode [ So, 13 Januar 2008 00:26 ] [ ID #1906505 ]

Re: Frontpage 2002 password protected page

DJ,

Thanks, I am using Windows hosting. I have had a play on the domains
control panel and all the protection options are restricted :-(

Thanks again.

"IdaSpode" wrote:

> On Fri, 11 Jan 2008 11:48:01 -0800, defraine
> <defraine [at] discussions.microsoft.com> wrote:
>
> >Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
>
> Do you have Windows hosting or Unix/Linux hosting?
>
> I have Unix hosting for most of my sites and use this method, but I
> let the CPanel function "web protect" to do it for me.
>
> http://www.euronet.nl/~arnow/htpasswd/documentation.html
>
> You might also want to check with your host and/or explore your
> domain's control panel for a password protection feature.
>
> DJ
>
defraine [ So, 13 Januar 2008 20:17 ] [ ID #1906528 ]

Re: Frontpage 2002 password protected page

Hi Thomas,

I really am having problems creating the DB as in the KB via inserting a
FORM. Any pointers please?. How would I perform the following?

Step 3 - Create a database by using Microsoft Access
1. Start Microsoft Access.
2. On the File menu, click New.
3. In the list of choices, click Blank Database.
4. Name the file logon.mdb and save it to your desktop.
5. In the Tables section, click New.
6. In the list, click Design View, and then click OK.
7. Create two fields: a. For the Field Name, type UID. For the Data Type,
click Text, and then click Primary Key.
b. For the Field Name, type PWD. For the Data Type, click Text.

8. On the File menu, click Save. Name the table tblUsers, and then click OK.
9. On the View menu, click Datasheet View.
10. In the UID column, type testuser. In the PWD column, type password.
11. On the File menu, click Close to close the table.
12. Quit Microsoft Access.

Sorry to be a pain,
Cheers,
Sean


"Thomas A. Rowe" wrote:

> With a web open, create a new page.
>
> Insert Menu | Form
>
> Click inside the dash line and then insert each field require, as indicated in the KB article.
>
> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> settings, select yes to correct, etc. then select Create Database.
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> > Thomas,
> >
> > Regarding creating the form, can you advise how please, I have never done a
> > form before. I guess the form creation creates the ACCESS part you talk of?
> >
> > Thaks again.
> >
> > "defraine" wrote:
> >
> >> Thanks Thomas, I'll give it a try.
> >>
> >> Sean
> >>
> >> "Thomas A. Rowe" wrote:
> >>
> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> >> > Access
> >> > database for you, then you can follow the instruction in the KB article configure your site.
> >> >
> >> > Your site must be hosted on a Windows IIS web server.
> >> >
> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the database
> >> > need
> >> > to be in fpdb if FP doesn't automatically create it there.
> >> >
> >> > --
> >> > ==============================================
> >> > Thomas A. Rowe
> >> > Microsoft MVP - FrontPage
> >> >
> >> > http://www.Ecom-Data.com
> >> > ==============================================
> >> >
> >> >
> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> >> > > Thanks
> >> > >
> >> > > "Thomas A. Rowe" wrote:
> >> > >
> >> > >> See:
> >> > >> http://support.microsoft.com/kb/825498/en-us
> >> > >>
> >> > >> --
> >> > >> ==============================================
> >> > >> Thomas A. Rowe
> >> > >> Microsoft MVP - FrontPage
> >> > >>
> >> > >> http://www.Ecom-Data.com
> >> > >> ==============================================
> >> > >>
> >> > >>
> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> >> > >> > Hi,
> >> > >> >
> >> > >> > I have been through most of the questions and answers that kind of relate to
> >> > >> > my question with not much success.
> >> > >> >
> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> >> > >> > protected. I can't change any permissions on the server my website is hosted
> >> > >> > on as it is locked down for security issues.
> >> > >> >
> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> >> > >> > assign multiple userid's to?
> >> > >> >
> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> >> > >> >
> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> >> > >> >
> >> > >> > Thanks in advance, Sean.
> >> > >>
> >> > >>
> >> > >>
> >> >
> >> >
> >> >
>
>
>
defraine [ So, 13 Januar 2008 20:20 ] [ ID #1906529 ]

Re: Frontpage 2002 password protected page

Also 5b in the KB tells you to save with the same title as 5a, needs updating.

"Thomas A. Rowe" wrote:

> With a web open, create a new page.
>
> Insert Menu | Form
>
> Click inside the dash line and then insert each field require, as indicated in the KB article.
>
> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> settings, select yes to correct, etc. then select Create Database.
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> > Thomas,
> >
> > Regarding creating the form, can you advise how please, I have never done a
> > form before. I guess the form creation creates the ACCESS part you talk of?
> >
> > Thaks again.
> >
> > "defraine" wrote:
> >
> >> Thanks Thomas, I'll give it a try.
> >>
> >> Sean
> >>
> >> "Thomas A. Rowe" wrote:
> >>
> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> >> > Access
> >> > database for you, then you can follow the instruction in the KB article configure your site.
> >> >
> >> > Your site must be hosted on a Windows IIS web server.
> >> >
> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the database
> >> > need
> >> > to be in fpdb if FP doesn't automatically create it there.
> >> >
> >> > --
> >> > ==============================================
> >> > Thomas A. Rowe
> >> > Microsoft MVP - FrontPage
> >> >
> >> > http://www.Ecom-Data.com
> >> > ==============================================
> >> >
> >> >
> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> >> > > Thanks
> >> > >
> >> > > "Thomas A. Rowe" wrote:
> >> > >
> >> > >> See:
> >> > >> http://support.microsoft.com/kb/825498/en-us
> >> > >>
> >> > >> --
> >> > >> ==============================================
> >> > >> Thomas A. Rowe
> >> > >> Microsoft MVP - FrontPage
> >> > >>
> >> > >> http://www.Ecom-Data.com
> >> > >> ==============================================
> >> > >>
> >> > >>
> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> >> > >> > Hi,
> >> > >> >
> >> > >> > I have been through most of the questions and answers that kind of relate to
> >> > >> > my question with not much success.
> >> > >> >
> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> >> > >> > protected. I can't change any permissions on the server my website is hosted
> >> > >> > on as it is locked down for security issues.
> >> > >> >
> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> >> > >> > assign multiple userid's to?
> >> > >> >
> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> >> > >> >
> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> >> > >> >
> >> > >> > Thanks in advance, Sean.
> >> > >>
> >> > >>
> >> > >>
> >> >
> >> >
> >> >
>
>
>
defraine [ So, 13 Januar 2008 21:49 ] [ ID #1906532 ]

Re: Frontpage 2002 password protected page

Sean,

You can skip Step 3, as I have created the database for you, which you can download it from:

http://www.ecom-data.com/SeanLogonDB.zip

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:A81C6AF3-9058-46E3-BDE6-EF97E0F341CB [at] microsoft.com...
> Hi Thomas,
>
> I really am having problems creating the DB as in the KB via inserting a
> FORM. Any pointers please?. How would I perform the following?
>
> Step 3 - Create a database by using Microsoft Access
> 1. Start Microsoft Access.
> 2. On the File menu, click New.
> 3. In the list of choices, click Blank Database.
> 4. Name the file logon.mdb and save it to your desktop.
> 5. In the Tables section, click New.
> 6. In the list, click Design View, and then click OK.
> 7. Create two fields: a. For the Field Name, type UID. For the Data Type,
> click Text, and then click Primary Key.
> b. For the Field Name, type PWD. For the Data Type, click Text.
>
> 8. On the File menu, click Save. Name the table tblUsers, and then click OK.
> 9. On the View menu, click Datasheet View.
> 10. In the UID column, type testuser. In the PWD column, type password.
> 11. On the File menu, click Close to close the table.
> 12. Quit Microsoft Access.
>
> Sorry to be a pain,
> Cheers,
> Sean
>
>
> "Thomas A. Rowe" wrote:
>
>> With a web open, create a new page.
>>
>> Insert Menu | Form
>>
>> Click inside the dash line and then insert each field require, as indicated in the KB article.
>>
>> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
>> settings, select yes to correct, etc. then select Create Database.
>> --
>> ==============================================
>> Thomas A. Rowe
>> Microsoft MVP - FrontPage
>>
>> http://www.Ecom-Data.com
>> ==============================================
>>
>>
>> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
>> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
>> > Thomas,
>> >
>> > Regarding creating the form, can you advise how please, I have never done a
>> > form before. I guess the form creation creates the ACCESS part you talk of?
>> >
>> > Thaks again.
>> >
>> > "defraine" wrote:
>> >
>> >> Thanks Thomas, I'll give it a try.
>> >>
>> >> Sean
>> >>
>> >> "Thomas A. Rowe" wrote:
>> >>
>> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
>> >> > Access
>> >> > database for you, then you can follow the instruction in the KB article configure your site.
>> >> >
>> >> > Your site must be hosted on a Windows IIS web server.
>> >> >
>> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the
>> >> > database
>> >> > need
>> >> > to be in fpdb if FP doesn't automatically create it there.
>> >> >
>> >> > --
>> >> > ==============================================
>> >> > Thomas A. Rowe
>> >> > Microsoft MVP - FrontPage
>> >> >
>> >> > http://www.Ecom-Data.com
>> >> > ==============================================
>> >> >
>> >> >
>> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
>> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
>> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
>> >> > > Thanks
>> >> > >
>> >> > > "Thomas A. Rowe" wrote:
>> >> > >
>> >> > >> See:
>> >> > >> http://support.microsoft.com/kb/825498/en-us
>> >> > >>
>> >> > >> --
>> >> > >> ==============================================
>> >> > >> Thomas A. Rowe
>> >> > >> Microsoft MVP - FrontPage
>> >> > >>
>> >> > >> http://www.Ecom-Data.com
>> >> > >> ==============================================
>> >> > >>
>> >> > >>
>> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
>> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
>> >> > >> > Hi,
>> >> > >> >
>> >> > >> > I have been through most of the questions and answers that kind of relate to
>> >> > >> > my question with not much success.
>> >> > >> >
>> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
>> >> > >> > protected. I can't change any permissions on the server my website is hosted
>> >> > >> > on as it is locked down for security issues.
>> >> > >> >
>> >> > >> > So can I easily re-create 1 page userid and password protected that I can
>> >> > >> > assign multiple userid's to?
>> >> > >> >
>> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
>> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
>> >> > >> >
>> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
>> >> > >> >
>> >> > >> > Thanks in advance, Sean.
>> >> > >>
>> >> > >>
>> >> > >>
>> >> >
>> >> >
>> >> >
>>
>>
>>
tarowe [ So, 13 Januar 2008 22:25 ] [ ID #1906534 ]

Re: Frontpage 2002 password protected page

Thank you very much. Will give it a go in the morning.

"Thomas A. Rowe" wrote:

> Sean,
>
> You can skip Step 3, as I have created the database for you, which you can download it from:
>
> http://www.ecom-data.com/SeanLogonDB.zip
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:A81C6AF3-9058-46E3-BDE6-EF97E0F341CB [at] microsoft.com...
> > Hi Thomas,
> >
> > I really am having problems creating the DB as in the KB via inserting a
> > FORM. Any pointers please?. How would I perform the following?
> >
> > Step 3 - Create a database by using Microsoft Access
> > 1. Start Microsoft Access.
> > 2. On the File menu, click New.
> > 3. In the list of choices, click Blank Database.
> > 4. Name the file logon.mdb and save it to your desktop.
> > 5. In the Tables section, click New.
> > 6. In the list, click Design View, and then click OK.
> > 7. Create two fields: a. For the Field Name, type UID. For the Data Type,
> > click Text, and then click Primary Key.
> > b. For the Field Name, type PWD. For the Data Type, click Text.
> >
> > 8. On the File menu, click Save. Name the table tblUsers, and then click OK.
> > 9. On the View menu, click Datasheet View.
> > 10. In the UID column, type testuser. In the PWD column, type password.
> > 11. On the File menu, click Close to close the table.
> > 12. Quit Microsoft Access.
> >
> > Sorry to be a pain,
> > Cheers,
> > Sean
> >
> >
> > "Thomas A. Rowe" wrote:
> >
> >> With a web open, create a new page.
> >>
> >> Insert Menu | Form
> >>
> >> Click inside the dash line and then insert each field require, as indicated in the KB article.
> >>
> >> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> >> settings, select yes to correct, etc. then select Create Database.
> >> --
> >> ==============================================
> >> Thomas A. Rowe
> >> Microsoft MVP - FrontPage
> >>
> >> http://www.Ecom-Data.com
> >> ==============================================
> >>
> >>
> >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> >> > Thomas,
> >> >
> >> > Regarding creating the form, can you advise how please, I have never done a
> >> > form before. I guess the form creation creates the ACCESS part you talk of?
> >> >
> >> > Thaks again.
> >> >
> >> > "defraine" wrote:
> >> >
> >> >> Thanks Thomas, I'll give it a try.
> >> >>
> >> >> Sean
> >> >>
> >> >> "Thomas A. Rowe" wrote:
> >> >>
> >> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> >> >> > Access
> >> >> > database for you, then you can follow the instruction in the KB article configure your site.
> >> >> >
> >> >> > Your site must be hosted on a Windows IIS web server.
> >> >> >
> >> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the
> >> >> > database
> >> >> > need
> >> >> > to be in fpdb if FP doesn't automatically create it there.
> >> >> >
> >> >> > --
> >> >> > ==============================================
> >> >> > Thomas A. Rowe
> >> >> > Microsoft MVP - FrontPage
> >> >> >
> >> >> > http://www.Ecom-Data.com
> >> >> > ==============================================
> >> >> >
> >> >> >
> >> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> >> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> >> >> > > Thanks
> >> >> > >
> >> >> > > "Thomas A. Rowe" wrote:
> >> >> > >
> >> >> > >> See:
> >> >> > >> http://support.microsoft.com/kb/825498/en-us
> >> >> > >>
> >> >> > >> --
> >> >> > >> ==============================================
> >> >> > >> Thomas A. Rowe
> >> >> > >> Microsoft MVP - FrontPage
> >> >> > >>
> >> >> > >> http://www.Ecom-Data.com
> >> >> > >> ==============================================
> >> >> > >>
> >> >> > >>
> >> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> >> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> >> >> > >> > Hi,
> >> >> > >> >
> >> >> > >> > I have been through most of the questions and answers that kind of relate to
> >> >> > >> > my question with not much success.
> >> >> > >> >
> >> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> >> >> > >> > protected. I can't change any permissions on the server my website is hosted
> >> >> > >> > on as it is locked down for security issues.
> >> >> > >> >
> >> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> >> >> > >> > assign multiple userid's to?
> >> >> > >> >
> >> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> >> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> >> >> > >> >
> >> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> >> >> > >> >
> >> >> > >> > Thanks in advance, Sean.
> >> >> > >>
> >> >> > >>
> >> >> > >>
> >> >> >
> >> >> >
> >> >> >
> >>
> >>
> >>
>
>
>
defraine [ So, 13 Januar 2008 22:41 ] [ ID #1906535 ]

Re: Frontpage 2002 password protected page

Can someone check KB321503 for me please? I have followed, however Step 6,
#4 does not bring me the LOGON page just the secure page again. I think it
something to do with the includes?

Thanks

"defraine" wrote:

> Thank you very much. Will give it a go in the morning.
>
> "Thomas A. Rowe" wrote:
>
> > Sean,
> >
> > You can skip Step 3, as I have created the database for you, which you can download it from:
> >
> > http://www.ecom-data.com/SeanLogonDB.zip
> >
> > --
> > ==============================================
> > Thomas A. Rowe
> > Microsoft MVP - FrontPage
> >
> > http://www.Ecom-Data.com
> > ==============================================
> >
> >
> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > news:A81C6AF3-9058-46E3-BDE6-EF97E0F341CB [at] microsoft.com...
> > > Hi Thomas,
> > >
> > > I really am having problems creating the DB as in the KB via inserting a
> > > FORM. Any pointers please?. How would I perform the following?
> > >
> > > Step 3 - Create a database by using Microsoft Access
> > > 1. Start Microsoft Access.
> > > 2. On the File menu, click New.
> > > 3. In the list of choices, click Blank Database.
> > > 4. Name the file logon.mdb and save it to your desktop.
> > > 5. In the Tables section, click New.
> > > 6. In the list, click Design View, and then click OK.
> > > 7. Create two fields: a. For the Field Name, type UID. For the Data Type,
> > > click Text, and then click Primary Key.
> > > b. For the Field Name, type PWD. For the Data Type, click Text.
> > >
> > > 8. On the File menu, click Save. Name the table tblUsers, and then click OK.
> > > 9. On the View menu, click Datasheet View.
> > > 10. In the UID column, type testuser. In the PWD column, type password.
> > > 11. On the File menu, click Close to close the table.
> > > 12. Quit Microsoft Access.
> > >
> > > Sorry to be a pain,
> > > Cheers,
> > > Sean
> > >
> > >
> > > "Thomas A. Rowe" wrote:
> > >
> > >> With a web open, create a new page.
> > >>
> > >> Insert Menu | Form
> > >>
> > >> Click inside the dash line and then insert each field require, as indicated in the KB article.
> > >>
> > >> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> > >> settings, select yes to correct, etc. then select Create Database.
> > >> --
> > >> ==============================================
> > >> Thomas A. Rowe
> > >> Microsoft MVP - FrontPage
> > >>
> > >> http://www.Ecom-Data.com
> > >> ==============================================
> > >>
> > >>
> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > >> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> > >> > Thomas,
> > >> >
> > >> > Regarding creating the form, can you advise how please, I have never done a
> > >> > form before. I guess the form creation creates the ACCESS part you talk of?
> > >> >
> > >> > Thaks again.
> > >> >
> > >> > "defraine" wrote:
> > >> >
> > >> >> Thanks Thomas, I'll give it a try.
> > >> >>
> > >> >> Sean
> > >> >>
> > >> >> "Thomas A. Rowe" wrote:
> > >> >>
> > >> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> > >> >> > Access
> > >> >> > database for you, then you can follow the instruction in the KB article configure your site.
> > >> >> >
> > >> >> > Your site must be hosted on a Windows IIS web server.
> > >> >> >
> > >> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the
> > >> >> > database
> > >> >> > need
> > >> >> > to be in fpdb if FP doesn't automatically create it there.
> > >> >> >
> > >> >> > --
> > >> >> > ==============================================
> > >> >> > Thomas A. Rowe
> > >> >> > Microsoft MVP - FrontPage
> > >> >> >
> > >> >> > http://www.Ecom-Data.com
> > >> >> > ==============================================
> > >> >> >
> > >> >> >
> > >> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > >> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> > >> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> > >> >> > > Thanks
> > >> >> > >
> > >> >> > > "Thomas A. Rowe" wrote:
> > >> >> > >
> > >> >> > >> See:
> > >> >> > >> http://support.microsoft.com/kb/825498/en-us
> > >> >> > >>
> > >> >> > >> --
> > >> >> > >> ==============================================
> > >> >> > >> Thomas A. Rowe
> > >> >> > >> Microsoft MVP - FrontPage
> > >> >> > >>
> > >> >> > >> http://www.Ecom-Data.com
> > >> >> > >> ==============================================
> > >> >> > >>
> > >> >> > >>
> > >> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > >> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> > >> >> > >> > Hi,
> > >> >> > >> >
> > >> >> > >> > I have been through most of the questions and answers that kind of relate to
> > >> >> > >> > my question with not much success.
> > >> >> > >> >
> > >> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> > >> >> > >> > protected. I can't change any permissions on the server my website is hosted
> > >> >> > >> > on as it is locked down for security issues.
> > >> >> > >> >
> > >> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> > >> >> > >> > assign multiple userid's to?
> > >> >> > >> >
> > >> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> > >> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> > >> >> > >> >
> > >> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> > >> >> > >> >
> > >> >> > >> > Thanks in advance, Sean.
> > >> >> > >>
> > >> >> > >>
> > >> >> > >>
> > >> >> >
> > >> >> >
> > >> >> >
> > >>
> > >>
> > >>
> >
> >
> >
defraine [ Mo, 14 Januar 2008 12:36 ] [ ID #1907239 ]

Re: Frontpage 2002 password protected page

Have you placed the include file in the _private folder? If so, move to
elsewhere. It is possible that it is not being included in the secure
page because the permissions on the _private folder prevent it being
read.

Change the link in the secure page
<!--#include virtual="/logon/_private/logon.inc"-->
to suit the new location.

Do the same with all files the article says to place in the _private
folder.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:7FDB1C40-7998-4356-A66F-58675782513D [at] microsoft.com:

> Can someone check KB321503 for me please? I have followed, however Step 6,
> #4 does not bring me the LOGON page just the secure page again. I think it
> something to do with the includes?
>
> Thanks
>
> "defraine" wrote:
>
> > Thank you very much. Will give it a go in the morning.
> >
> > "Thomas A. Rowe" wrote:
> >
> > > Sean,
> > >
> > > You can skip Step 3, as I have created the database for you, which you can download it from:
> > >
> > > http://www.ecom-data.com/SeanLogonDB.zip
> > >
> > > --
> > > ==============================================
> > > Thomas A. Rowe
> > > Microsoft MVP - FrontPage
> > >
> > > http://www.Ecom-Data.com
> > > ==============================================
> > >
> > >
> > > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > news:A81C6AF3-9058-46E3-BDE6-EF97E0F341CB [at] microsoft.com...
> > > > Hi Thomas,
> > > >
> > > > I really am having problems creating the DB as in the KB via inserting a
> > > > FORM. Any pointers please?. How would I perform the following?
> > > >
> > > > Step 3 - Create a database by using Microsoft Access
> > > > 1. Start Microsoft Access.
> > > > 2. On the File menu, click New.
> > > > 3. In the list of choices, click Blank Database.
> > > > 4. Name the file logon.mdb and save it to your desktop.
> > > > 5. In the Tables section, click New.
> > > > 6. In the list, click Design View, and then click OK.
> > > > 7. Create two fields: a. For the Field Name, type UID. For the Data Type,
> > > > click Text, and then click Primary Key.
> > > > b. For the Field Name, type PWD. For the Data Type, click Text.
> > > >
> > > > 8. On the File menu, click Save. Name the table tblUsers, and then click OK.
> > > > 9. On the View menu, click Datasheet View.
> > > > 10. In the UID column, type testuser. In the PWD column, type password.
> > > > 11. On the File menu, click Close to close the table.
> > > > 12. Quit Microsoft Access.
> > > >
> > > > Sorry to be a pain,
> > > > Cheers,
> > > > Sean
> > > >
> > > >
> > > > "Thomas A. Rowe" wrote:
> > > >
> > > >> With a web open, create a new page.
> > > >>
> > > >> Insert Menu | Form
> > > >>
> > > >> Click inside the dash line and then insert each field require, as indicated in the KB article.
> > > >>
> > > >> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> > > >> settings, select yes to correct, etc. then select Create Database.
> > > >> --
> > > >> ==============================================
> > > >> Thomas A. Rowe
> > > >> Microsoft MVP - FrontPage
> > > >>
> > > >> http://www.Ecom-Data.com
> > > >> ==============================================
> > > >>
> > > >>
> > > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > >> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> > > >> > Thomas,
> > > >> >
> > > >> > Regarding creating the form, can you advise how please, I have never done a
> > > >> > form before. I guess the form creation creates the ACCESS part you talk of?
> > > >> >
> > > >> > Thaks again.
> > > >> >
> > > >> > "defraine" wrote:
> > > >> >
> > > >> >> Thanks Thomas, I'll give it a try.
> > > >> >>
> > > >> >> Sean
> > > >> >>
> > > >> >> "Thomas A. Rowe" wrote:
> > > >> >>
> > > >> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> > > >> >> > Access
> > > >> >> > database for you, then you can follow the instruction in the KB article configure your site.
> > > >> >> >
> > > >> >> > Your site must be hosted on a Windows IIS web server.
> > > >> >> >
> > > >> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the
> > > >> >> > database
> > > >> >> > need
> > > >> >> > to be in fpdb if FP doesn't automatically create it there.
> > > >> >> >
> > > >> >> > --
> > > >> >> > ==============================================
> > > >> >> > Thomas A. Rowe
> > > >> >> > Microsoft MVP - FrontPage
> > > >> >> >
> > > >> >> > http://www.Ecom-Data.com
> > > >> >> > ==============================================
> > > >> >> >
> > > >> >> >
> > > >> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > >> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> > > >> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> > > >> >> > > Thanks
> > > >> >> > >
> > > >> >> > > "Thomas A. Rowe" wrote:
> > > >> >> > >
> > > >> >> > >> See:
> > > >> >> > >> http://support.microsoft.com/kb/825498/en-us
> > > >> >> > >>
> > > >> >> > >> --
> > > >> >> > >> ==============================================
> > > >> >> > >> Thomas A. Rowe
> > > >> >> > >> Microsoft MVP - FrontPage
> > > >> >> > >>
> > > >> >> > >> http://www.Ecom-Data.com
> > > >> >> > >> ==============================================
> > > >> >> > >>
> > > >> >> > >>
> > > >> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > >> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> > > >> >> > >> > Hi,
> > > >> >> > >> >
> > > >> >> > >> > I have been through most of the questions and answers that kind of relate to
> > > >> >> > >> > my question with not much success.
> > > >> >> > >> >
> > > >> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> > > >> >> > >> > protected. I can't change any permissions on the server my website is hosted
> > > >> >> > >> > on as it is locked down for security issues.
> > > >> >> > >> >
> > > >> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> > > >> >> > >> > assign multiple userid's to?
> > > >> >> > >> >
> > > >> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> > > >> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> > > >> >> > >> >
> > > >> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> > > >> >> > >> >
> > > >> >> > >> > Thanks in advance, Sean.
> > > >> >> > >>
> > > >> >> > >>
> > > >> >> > >>
> > > >> >> >
> > > >> >> >
> > > >> >> >
> > > >>
> > > >>
> > > >>
> > >
> > >
> > >
Ronx [ Mo, 14 Januar 2008 14:25 ] [ ID #1907241 ]

Re: Frontpage 2002 password protected page

Ronx,

Nope, I swear it is something easy and I am just being a muppet, you can
name which one!

When it says 'in the root folder of your logon Web' does that mean in the
top level web or logon subsite?

Currently I have website TEST, in that I have:
Subsite logon
default.asp
secure.asp
unsecure.asp
logon.asp

In Subsite LOGON I have:
logon.inc
logon.mdb

I have updated the include statements in logon.inc and .asp.

Help!
Cheers


"Ronx" wrote:

> Have you placed the include file in the _private folder? If so, move to
> elsewhere. It is possible that it is not being included in the secure
> page because the permissions on the _private folder prevent it being
> read.
>
> Change the link in the secure page
> <!--#include virtual="/logon/_private/logon.inc"-->
> to suit the new location.
>
> Do the same with all files the article says to place in the _private
> folder.
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:7FDB1C40-7998-4356-A66F-58675782513D [at] microsoft.com:
>
> > Can someone check KB321503 for me please? I have followed, however Step 6,
> > #4 does not bring me the LOGON page just the secure page again. I think it
> > something to do with the includes?
> >
> > Thanks
> >
> > "defraine" wrote:
> >
> > > Thank you very much. Will give it a go in the morning.
> > >
> > > "Thomas A. Rowe" wrote:
> > >
> > > > Sean,
> > > >
> > > > You can skip Step 3, as I have created the database for you, which you can download it from:
> > > >
> > > > http://www.ecom-data.com/SeanLogonDB.zip
> > > >
> > > > --
> > > > ==============================================
> > > > Thomas A. Rowe
> > > > Microsoft MVP - FrontPage
> > > >
> > > > http://www.Ecom-Data.com
> > > > ==============================================
> > > >
> > > >
> > > > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > news:A81C6AF3-9058-46E3-BDE6-EF97E0F341CB [at] microsoft.com...
> > > > > Hi Thomas,
> > > > >
> > > > > I really am having problems creating the DB as in the KB via inserting a
> > > > > FORM. Any pointers please?. How would I perform the following?
> > > > >
> > > > > Step 3 - Create a database by using Microsoft Access
> > > > > 1. Start Microsoft Access.
> > > > > 2. On the File menu, click New.
> > > > > 3. In the list of choices, click Blank Database.
> > > > > 4. Name the file logon.mdb and save it to your desktop.
> > > > > 5. In the Tables section, click New.
> > > > > 6. In the list, click Design View, and then click OK.
> > > > > 7. Create two fields: a. For the Field Name, type UID. For the Data Type,
> > > > > click Text, and then click Primary Key.
> > > > > b. For the Field Name, type PWD. For the Data Type, click Text.
> > > > >
> > > > > 8. On the File menu, click Save. Name the table tblUsers, and then click OK.
> > > > > 9. On the View menu, click Datasheet View.
> > > > > 10. In the UID column, type testuser. In the PWD column, type password.
> > > > > 11. On the File menu, click Close to close the table.
> > > > > 12. Quit Microsoft Access.
> > > > >
> > > > > Sorry to be a pain,
> > > > > Cheers,
> > > > > Sean
> > > > >
> > > > >
> > > > > "Thomas A. Rowe" wrote:
> > > > >
> > > > >> With a web open, create a new page.
> > > > >>
> > > > >> Insert Menu | Form
> > > > >>
> > > > >> Click inside the dash line and then insert each field require, as indicated in the KB article.
> > > > >>
> > > > >> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> > > > >> settings, select yes to correct, etc. then select Create Database.
> > > > >> --
> > > > >> ==============================================
> > > > >> Thomas A. Rowe
> > > > >> Microsoft MVP - FrontPage
> > > > >>
> > > > >> http://www.Ecom-Data.com
> > > > >> ==============================================
> > > > >>
> > > > >>
> > > > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > >> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> > > > >> > Thomas,
> > > > >> >
> > > > >> > Regarding creating the form, can you advise how please, I have never done a
> > > > >> > form before. I guess the form creation creates the ACCESS part you talk of?
> > > > >> >
> > > > >> > Thaks again.
> > > > >> >
> > > > >> > "defraine" wrote:
> > > > >> >
> > > > >> >> Thanks Thomas, I'll give it a try.
> > > > >> >>
> > > > >> >> Sean
> > > > >> >>
> > > > >> >> "Thomas A. Rowe" wrote:
> > > > >> >>
> > > > >> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> > > > >> >> > Access
> > > > >> >> > database for you, then you can follow the instruction in the KB article configure your site.
> > > > >> >> >
> > > > >> >> > Your site must be hosted on a Windows IIS web server.
> > > > >> >> >
> > > > >> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the
> > > > >> >> > database
> > > > >> >> > need
> > > > >> >> > to be in fpdb if FP doesn't automatically create it there.
> > > > >> >> >
> > > > >> >> > --
> > > > >> >> > ==============================================
> > > > >> >> > Thomas A. Rowe
> > > > >> >> > Microsoft MVP - FrontPage
> > > > >> >> >
> > > > >> >> > http://www.Ecom-Data.com
> > > > >> >> > ==============================================
> > > > >> >> >
> > > > >> >> >
> > > > >> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > >> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> > > > >> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> > > > >> >> > > Thanks
> > > > >> >> > >
> > > > >> >> > > "Thomas A. Rowe" wrote:
> > > > >> >> > >
> > > > >> >> > >> See:
> > > > >> >> > >> http://support.microsoft.com/kb/825498/en-us
> > > > >> >> > >>
> > > > >> >> > >> --
> > > > >> >> > >> ==============================================
> > > > >> >> > >> Thomas A. Rowe
> > > > >> >> > >> Microsoft MVP - FrontPage
> > > > >> >> > >>
> > > > >> >> > >> http://www.Ecom-Data.com
> > > > >> >> > >> ==============================================
> > > > >> >> > >>
> > > > >> >> > >>
> > > > >> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > >> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> > > > >> >> > >> > Hi,
> > > > >> >> > >> >
> > > > >> >> > >> > I have been through most of the questions and answers that kind of relate to
> > > > >> >> > >> > my question with not much success.
> > > > >> >> > >> >
> > > > >> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> > > > >> >> > >> > protected. I can't change any permissions on the server my website is hosted
> > > > >> >> > >> > on as it is locked down for security issues.
> > > > >> >> > >> >
> > > > >> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> > > > >> >> > >> > assign multiple userid's to?
> > > > >> >> > >> >
> > > > >> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> > > > >> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> > > > >> >> > >> >
> > > > >> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> > > > >> >> > >> >
> > > > >> >> > >> > Thanks in advance, Sean.
> > > > >> >> > >>
> > > > >> >> > >>
> > > > >> >> > >>
> > > > >> >> >
> > > > >> >> >
> > > > >> >> >
> > > > >>
> > > > >>
> > > > >>
> > > >
> > > >
> > > >
>
>
defraine [ Mo, 14 Januar 2008 15:20 ] [ ID #1907242 ]

Re: Frontpage 2002 password protected page

'in the root folder of your logon Web' means in the logon subweb.

In test you should have:
A default page with a link to default.asp in logon subweb.
Logon subweb
Other folders and files for the website

In Logon subweb:
All pages described in the article:
Default.asp
Logon.asp
Secure.asp
Unsecure.asp
Logon.inc
A folder named fpdb
fpdb folder contains logon.mdb

Note that you should let FrontPage create the fpdb folder - File->Import
the logon.mdb database and allow FrontPage to place it in the fpdb
folder. This creates the correct permissions for the database to be
secured from unauthorised downloading, and readable/writable by asp
pages.

The include is in secure.asp - logon.inc should not have any included
files.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:EEE7CF55-70F7-484B-AB51-B3550BC671F4 [at] microsoft.com:

> Ronx,
>
> Nope, I swear it is something easy and I am just being a muppet, you can
> name which one!
>
> When it says 'in the root folder of your logon Web' does that mean in the
> top level web or logon subsite?
>
> Currently I have website TEST, in that I have:
> Subsite logon
> default.asp
> secure.asp
> unsecure.asp
> logon.asp
>
> In Subsite LOGON I have:
> logon.inc
> logon.mdb
>
> I have updated the include statements in logon.inc and .asp.
>
> Help!
> Cheers
>
>
> "Ronx" wrote:
>
> > Have you placed the include file in the _private folder? If so, move to
> > elsewhere. It is possible that it is not being included in the secure
> > page because the permissions on the _private folder prevent it being
> > read.
> >
> > Change the link in the secure page
> > <!--#include virtual="/logon/_private/logon.inc"-->
> > to suit the new location.
> >
> > Do the same with all files the article says to place in the _private
> > folder.
> > --
> > Ron Symonds - Microsoft MVP (FrontPage)
> > Reply only to group - emails will be deleted unread.
> >
> > http://www.rxs-enterprises.org/fp
> >
> >
> >
> >
> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > news:7FDB1C40-7998-4356-A66F-58675782513D [at] microsoft.com:
> >
> > > Can someone check KB321503 for me please? I have followed, however Step 6,
> > > #4 does not bring me the LOGON page just the secure page again. I think it
> > > something to do with the includes?
> > >
> > > Thanks
> > >
> > > "defraine" wrote:
> > >
> > > > Thank you very much. Will give it a go in the morning.
> > > >
> > > > "Thomas A. Rowe" wrote:
> > > >
> > > > > Sean,
> > > > >
> > > > > You can skip Step 3, as I have created the database for you, which you can download it from:
> > > > >
> > > > > http://www.ecom-data.com/SeanLogonDB.zip
> > > > >
> > > > > --
> > > > > ==============================================
> > > > > Thomas A. Rowe
> > > > > Microsoft MVP - FrontPage
> > > > >
> > > > > http://www.Ecom-Data.com
> > > > > ==============================================
> > > > >
> > > > >
> > > > > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > > news:A81C6AF3-9058-46E3-BDE6-EF97E0F341CB [at] microsoft.com...
> > > > > > Hi Thomas,
> > > > > >
> > > > > > I really am having problems creating the DB as in the KB via inserting a
> > > > > > FORM. Any pointers please?. How would I perform the following?
> > > > > >
> > > > > > Step 3 - Create a database by using Microsoft Access
> > > > > > 1. Start Microsoft Access.
> > > > > > 2. On the File menu, click New.
> > > > > > 3. In the list of choices, click Blank Database.
> > > > > > 4. Name the file logon.mdb and save it to your desktop.
> > > > > > 5. In the Tables section, click New.
> > > > > > 6. In the list, click Design View, and then click OK.
> > > > > > 7. Create two fields: a. For the Field Name, type UID. For the Data Type,
> > > > > > click Text, and then click Primary Key.
> > > > > > b. For the Field Name, type PWD. For the Data Type, click Text.
> > > > > >
> > > > > > 8. On the File menu, click Save. Name the table tblUsers, and then click OK.
> > > > > > 9. On the View menu, click Datasheet View.
> > > > > > 10. In the UID column, type testuser. In the PWD column, type password.
> > > > > > 11. On the File menu, click Close to close the table.
> > > > > > 12. Quit Microsoft Access.
> > > > > >
> > > > > > Sorry to be a pain,
> > > > > > Cheers,
> > > > > > Sean
> > > > > >
> > > > > >
> > > > > > "Thomas A. Rowe" wrote:
> > > > > >
> > > > > >> With a web open, create a new page.
> > > > > >>
> > > > > >> Insert Menu | Form
> > > > > >>
> > > > > >> Click inside the dash line and then insert each field require, as indicated in the KB article.
> > > > > >>
> > > > > >> Then under Form properties, Select Send to Database, click Ok. If you see a message about invalid
> > > > > >> settings, select yes to correct, etc. then select Create Database.
> > > > > >> --
> > > > > >> ==============================================
> > > > > >> Thomas A. Rowe
> > > > > >> Microsoft MVP - FrontPage
> > > > > >>
> > > > > >> http://www.Ecom-Data.com
> > > > > >> ==============================================
> > > > > >>
> > > > > >>
> > > > > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > > >> news:F2D61584-14D0-4DC9-91EB-B67E6C5E2C89 [at] microsoft.com...
> > > > > >> > Thomas,
> > > > > >> >
> > > > > >> > Regarding creating the form, can you advise how please, I have never done a
> > > > > >> > form before. I guess the form creation creates the ACCESS part you talk of?
> > > > > >> >
> > > > > >> > Thaks again.
> > > > > >> >
> > > > > >> > "defraine" wrote:
> > > > > >> >
> > > > > >> >> Thanks Thomas, I'll give it a try.
> > > > > >> >>
> > > > > >> >> Sean
> > > > > >> >>
> > > > > >> >> "Thomas A. Rowe" wrote:
> > > > > >> >>
> > > > > >> >> > You can create a form with the fields needed as indicated in the KB, then let FP create the
> > > > > >> >> > Access
> > > > > >> >> > database for you, then you can follow the instruction in the KB article configure your site.
> > > > > >> >> >
> > > > > >> >> > Your site must be hosted on a Windows IIS web server.
> > > > > >> >> >
> > > > > >> >> > Note: The Kb indicates placing the database in the _private folder, this is wrong, the
> > > > > >> >> > database
> > > > > >> >> > need
> > > > > >> >> > to be in fpdb if FP doesn't automatically create it there.
> > > > > >> >> >
> > > > > >> >> > --
> > > > > >> >> > ==============================================
> > > > > >> >> > Thomas A. Rowe
> > > > > >> >> > Microsoft MVP - FrontPage
> > > > > >> >> >
> > > > > >> >> > http://www.Ecom-Data.com
> > > > > >> >> > ==============================================
> > > > > >> >> >
> > > > > >> >> >
> > > > > >> >> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > > >> >> > news:F1EB36B8-ECC0-4B33-98F8-E933FDC05048 [at] microsoft.com...
> > > > > >> >> > > Hi Thomas, I read that one, I don't have ACCESS. Is there NO other way at all?
> > > > > >> >> > > Thanks
> > > > > >> >> > >
> > > > > >> >> > > "Thomas A. Rowe" wrote:
> > > > > >> >> > >
> > > > > >> >> > >> See:
> > > > > >> >> > >> http://support.microsoft.com/kb/825498/en-us
> > > > > >> >> > >>
> > > > > >> >> > >> --
> > > > > >> >> > >> ==============================================
> > > > > >> >> > >> Thomas A. Rowe
> > > > > >> >> > >> Microsoft MVP - FrontPage
> > > > > >> >> > >>
> > > > > >> >> > >> http://www.Ecom-Data.com
> > > > > >> >> > >> ==============================================
> > > > > >> >> > >>
> > > > > >> >> > >>
> > > > > >> >> > >> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > > > >> >> > >> news:DCD087E0-3443-44F0-87C7-C9C64991D99B [at] microsoft.com...
> > > > > >> >> > >> > Hi,
> > > > > >> >> > >> >
> > > > > >> >> > >> > I have been through most of the questions and answers that kind of relate to
> > > > > >> >> > >> > my question with not much success.
> > > > > >> >> > >> >
> > > > > >> >> > >> > I want to make the "Members" page on www.blarneyquick.com password
> > > > > >> >> > >> > protected. I can't change any permissions on the server my website is hosted
> > > > > >> >> > >> > on as it is locked down for security issues.
> > > > > >> >> > >> >
> > > > > >> >> > >> > So can I easily re-create 1 page userid and password protected that I can
> > > > > >> >> > >> > assign multiple userid's to?
> > > > > >> >> > >> >
> > > > > >> >> > >> > Any advise muchily appreciated. I am using FrontPage 2002 and am fairly
> > > > > >> >> > >> > good with HTML but have never used ASP and applicatiosn like that.
> > > > > >> >> > >> >
> > > > > >> >> > >> > I know there is a Microsoft solution using ACCESS but I don't have it.
> > > > > >> >> > >> >
> > > > > >> >> > >> > Thanks in advance, Sean.
> > > > > >> >> > >>
> > > > > >> >> > >>
> > > > > >> >> > >>
> > > > > >> >> >
> > > > > >> >> >
> > > > > >> >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > >
> > > > >
> > > > >
> >
> >
Ronx [ Mo, 14 Januar 2008 16:33 ] [ ID #1907244 ]

Re: Frontpage 2002 password protected page

OK, I am one last post away from giving up :-(

I am currently following the Frontpage 2000 KB 321503. I only have
Frontpage 2000 at work.

I have a website "test" that just contains index.html This has a link to
default.asp in my sub web "logon".

Sub web logon contains.
default.asp
unsecure.asp
secure.asp
logon.asp
logon.inc

fpdb contains logon.mdb created as instructed.
_private has no files in.

Now I preview default.asp - perfect.
I click on unsecure and get the unsecure page.
I click on secure and get the secure page, but never re-directs to logon.asp
I can't preview logon.asp although the outrput is fine from the preview tab
in page view.

Here is my secure.asp code, include changed from KB - ok?
<% [at] language="vbscript" %>
<!--#include virtual="/logon/logon.inc"-->
<html>
<head><title>Secure Page</title></head>
<body>
<h3>Secure Page</h3>
<p>You are logged on as:
<%
If Len(Session("UID")) = 0 Then
Response.Write "<b>You are not logged on.</b>"
Else
Response.Write "<b>" & Session("UID") & "</b>"
End If
%>
</p>
<p>Back to default</p>
</body>
</html>

Here is logon.asp, include again changed from KB - ok?
<% [at] language="vbscript" %>
<!--#include virtual="/logon/logon.inc"-->
<%
' Was this page posted to?
If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
' If so, verify the username/password that was entered.
If ComparePassword(Request("UID"),Request("PWD")) Then
' If comparison was good, store the user name...
Session("UID") = Request("UID")
' ..and redirect back to the original page.
Response.Redirect Session("REFERRER")
End If
End If
%>
<html>
<head><title>Logon Page</title>
<style>
body { font-family: arial, helvetica }
table { background-color: #cccccc; font-size: 9pt; padding: 3px }
td { color: #000000; background-color: #cccccc; border-width: 0px }
th { color: #ffffff; background-color: #0000cc; border-width: 0px }
</style>
</head>
<body bgcolor="#000000" text="#ffffff">
<h3 align="center"> </h3>
<div align="center"><center>
<form action="<%=LOGON_PAGE%>" method="POST">
<table border="2" cellpadding="2" cellspacing="2">
<tr>
<th colspan="4" align="left">Enter User Name and Password</th>
</tr>
<tr>
<td> </td>
<td colspan="2" align="left">Please type your user name and password.</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="left">Site</td>
<td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="left">User Name</td>
<td align="left"><input name="UID" type="text" size="20"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="left">Password</td>
<td align="left"><input name="PWD" type="password" size="20"></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td colspan="2" align="center"><input type="submit" value="LOGON"></td>
<td> </td>
</tr>
</table>
</form>
</center></div>
</body>
</html>

This is logon.inc, references in here also needed changing - ok?
<%
' Do not cache this page.
Response.CacheControl = "no-cache"

' Define the name of the users table.
Const USERS_TABLE = "tblUsers"
' Define the path to the logon page.
Const LOGON_PAGE = "/logon/logon.asp"
' Define the path to the logon database.
Const MDB_URL = "/logon/fpdb/logon.mdb"

' Check to see whether you have a current user name.
If Len(Session("UID")) = 0 Then
' Are you currently on the logon page?
If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
' If not, set a session variable for the page that made the request...
Session("REFERRER") = Request.ServerVariables("URL")
' ...and redirect to the logon page.
Response.Redirect LOGON_PAGE
End If
End If

' This function checks for a username/password combination.
Function ComparePassword(UID,PWD)
' Define your variables.
Dim strSQL, objCN, objRS
' Set up your SQL string.
strSQL = "SELECT * FROM " & USERS_TABLE & _
" WHERE (UID='" & ParseText(UID) & _
"' AND PWD='" & ParseText(PWD) & "');"
' Create a database connection object.
Set objCN = Server.CreateObject("ADODB.Connection")
' Open the database connection object.
objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
Server.MapPath(MDB_URL) & "; uid=admin; pwd="
' Run the database query.
Set objRS = objCN.Execute(strSQL)
' Set the status to true/false for the database lookup.
ComparePassword = Not(objRS.EOF)
' Close your database objects.
Set objRS = Nothing
Set objCN = Nothing
End Function

' This function restricts text to alpha-numeric data only.
Function ParseText(TXT)
Dim intPos, strText, intText
For intPos = 1 TO Len(TXT)
intText = Asc(Mid(TXT,intPos,1))
If (intText > 47 And intText < 58) Or _
(intText > 64 And intText < 91) Or _
(intText > 96 And intText < 123) Then
strText = strText & Mid(TXT,intPos,1)
End if
Next
ParseText = strText
End Function
%>

So basically my example never loads the logon.asp page, I can click between
the default, secure and unsecure pages, but never get to use the logon page
to check testuser and password.

Help please, if not too much trouble, could you try following the KB and see
if it works for you?

All I want to do is password protect 1 page :-(

Thanks again
defraine [ Di, 15 Januar 2008 14:46 ] [ ID #1908141 ]

Re: Frontpage 2002 password protected page

Make sure that you are open and working on the site via http://localhost/webname or on the live
server via http://www.domainname.com, etc.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================


"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:D6D973F1-567C-410B-8D36-C9C2C314C21E [at] microsoft.com...
> OK, I am one last post away from giving up :-(
>
> I am currently following the Frontpage 2000 KB 321503. I only have
> Frontpage 2000 at work.
>
> I have a website "test" that just contains index.html This has a link to
> default.asp in my sub web "logon".
>
> Sub web logon contains.
> default.asp
> unsecure.asp
> secure.asp
> logon.asp
> logon.inc
>
> fpdb contains logon.mdb created as instructed.
> _private has no files in.
>
> Now I preview default.asp - perfect.
> I click on unsecure and get the unsecure page.
> I click on secure and get the secure page, but never re-directs to logon.asp
> I can't preview logon.asp although the outrput is fine from the preview tab
> in page view.
>
> Here is my secure.asp code, include changed from KB - ok?
> <% [at] language="vbscript" %>
> <!--#include virtual="/logon/logon.inc"-->
> <html>
> <head><title>Secure Page</title></head>
> <body>
> <h3>Secure Page</h3>
> <p>You are logged on as:
> <%
> If Len(Session("UID")) = 0 Then
> Response.Write "<b>You are not logged on.</b>"
> Else
> Response.Write "<b>" & Session("UID") & "</b>"
> End If
> %>
> </p>
> <p>Back to default</p>
> </body>
> </html>
>
> Here is logon.asp, include again changed from KB - ok?
> <% [at] language="vbscript" %>
> <!--#include virtual="/logon/logon.inc"-->
> <%
> ' Was this page posted to?
> If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
> ' If so, verify the username/password that was entered.
> If ComparePassword(Request("UID"),Request("PWD")) Then
> ' If comparison was good, store the user name...
> Session("UID") = Request("UID")
> ' ..and redirect back to the original page.
> Response.Redirect Session("REFERRER")
> End If
> End If
> %>
> <html>
> <head><title>Logon Page</title>
> <style>
> body { font-family: arial, helvetica }
> table { background-color: #cccccc; font-size: 9pt; padding: 3px }
> td { color: #000000; background-color: #cccccc; border-width: 0px }
> th { color: #ffffff; background-color: #0000cc; border-width: 0px }
> </style>
> </head>
> <body bgcolor="#000000" text="#ffffff">
> <h3 align="center"> </h3>
> <div align="center"><center>
> <form action="<%=LOGON_PAGE%>" method="POST">
> <table border="2" cellpadding="2" cellspacing="2">
> <tr>
> <th colspan="4" align="left">Enter User Name and Password</th>
> </tr>
> <tr>
> <td> </td>
> <td colspan="2" align="left">Please type your user name and password.</td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td align="left">Site</td>
> <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td align="left">User Name</td>
> <td align="left"><input name="UID" type="text" size="20"></td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td align="left">Password</td>
> <td align="left"><input name="PWD" type="password" size="20"></td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
> <td> </td>
> </tr>
> </table>
> </form>
> </center></div>
> </body>
> </html>
>
> This is logon.inc, references in here also needed changing - ok?
> <%
> ' Do not cache this page.
> Response.CacheControl = "no-cache"
>
> ' Define the name of the users table.
> Const USERS_TABLE = "tblUsers"
> ' Define the path to the logon page.
> Const LOGON_PAGE = "/logon/logon.asp"
> ' Define the path to the logon database.
> Const MDB_URL = "/logon/fpdb/logon.mdb"
>
> ' Check to see whether you have a current user name.
> If Len(Session("UID")) = 0 Then
> ' Are you currently on the logon page?
> If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
> ' If not, set a session variable for the page that made the request...
> Session("REFERRER") = Request.ServerVariables("URL")
> ' ...and redirect to the logon page.
> Response.Redirect LOGON_PAGE
> End If
> End If
>
> ' This function checks for a username/password combination.
> Function ComparePassword(UID,PWD)
> ' Define your variables.
> Dim strSQL, objCN, objRS
> ' Set up your SQL string.
> strSQL = "SELECT * FROM " & USERS_TABLE & _
> " WHERE (UID='" & ParseText(UID) & _
> "' AND PWD='" & ParseText(PWD) & "');"
> ' Create a database connection object.
> Set objCN = Server.CreateObject("ADODB.Connection")
> ' Open the database connection object.
> objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> ' Run the database query.
> Set objRS = objCN.Execute(strSQL)
> ' Set the status to true/false for the database lookup.
> ComparePassword = Not(objRS.EOF)
> ' Close your database objects.
> Set objRS = Nothing
> Set objCN = Nothing
> End Function
>
> ' This function restricts text to alpha-numeric data only.
> Function ParseText(TXT)
> Dim intPos, strText, intText
> For intPos = 1 TO Len(TXT)
> intText = Asc(Mid(TXT,intPos,1))
> If (intText > 47 And intText < 58) Or _
> (intText > 64 And intText < 91) Or _
> (intText > 96 And intText < 123) Then
> strText = strText & Mid(TXT,intPos,1)
> End if
> Next
> ParseText = strText
> End Function
> %>
>
> So basically my example never loads the logon.asp page, I can click between
> the default, secure and unsecure pages, but never get to use the logon page
> to check testuser and password.
>
> Help please, if not too much trouble, could you try following the KB and see
> if it works for you?
>
> All I want to do is password protect 1 page :-(
>
> Thanks again
>
tarowe [ Di, 15 Januar 2008 16:43 ] [ ID #1908150 ]

Re: Frontpage 2002 password protected page

Ah ha, I've been doing it locally!

"Thomas A. Rowe" wrote:

> Make sure that you are open and working on the site via http://localhost/webname or on the live
> server via http://www.domainname.com, etc.
>
> --
> ==============================================
> Thomas A. Rowe
> Microsoft MVP - FrontPage
>
> http://www.Ecom-Data.com
> ==============================================
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:D6D973F1-567C-410B-8D36-C9C2C314C21E [at] microsoft.com...
> > OK, I am one last post away from giving up :-(
> >
> > I am currently following the Frontpage 2000 KB 321503. I only have
> > Frontpage 2000 at work.
> >
> > I have a website "test" that just contains index.html This has a link to
> > default.asp in my sub web "logon".
> >
> > Sub web logon contains.
> > default.asp
> > unsecure.asp
> > secure.asp
> > logon.asp
> > logon.inc
> >
> > fpdb contains logon.mdb created as instructed.
> > _private has no files in.
> >
> > Now I preview default.asp - perfect.
> > I click on unsecure and get the unsecure page.
> > I click on secure and get the secure page, but never re-directs to logon.asp
> > I can't preview logon.asp although the outrput is fine from the preview tab
> > in page view.
> >
> > Here is my secure.asp code, include changed from KB - ok?
> > <% [at] language="vbscript" %>
> > <!--#include virtual="/logon/logon.inc"-->
> > <html>
> > <head><title>Secure Page</title></head>
> > <body>
> > <h3>Secure Page</h3>
> > <p>You are logged on as:
> > <%
> > If Len(Session("UID")) = 0 Then
> > Response.Write "<b>You are not logged on.</b>"
> > Else
> > Response.Write "<b>" & Session("UID") & "</b>"
> > End If
> > %>
> > </p>
> > <p>Back to default</p>
> > </body>
> > </html>
> >
> > Here is logon.asp, include again changed from KB - ok?
> > <% [at] language="vbscript" %>
> > <!--#include virtual="/logon/logon.inc"-->
> > <%
> > ' Was this page posted to?
> > If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
> > ' If so, verify the username/password that was entered.
> > If ComparePassword(Request("UID"),Request("PWD")) Then
> > ' If comparison was good, store the user name...
> > Session("UID") = Request("UID")
> > ' ..and redirect back to the original page.
> > Response.Redirect Session("REFERRER")
> > End If
> > End If
> > %>
> > <html>
> > <head><title>Logon Page</title>
> > <style>
> > body { font-family: arial, helvetica }
> > table { background-color: #cccccc; font-size: 9pt; padding: 3px }
> > td { color: #000000; background-color: #cccccc; border-width: 0px }
> > th { color: #ffffff; background-color: #0000cc; border-width: 0px }
> > </style>
> > </head>
> > <body bgcolor="#000000" text="#ffffff">
> > <h3 align="center"> </h3>
> > <div align="center"><center>
> > <form action="<%=LOGON_PAGE%>" method="POST">
> > <table border="2" cellpadding="2" cellspacing="2">
> > <tr>
> > <th colspan="4" align="left">Enter User Name and Password</th>
> > </tr>
> > <tr>
> > <td> </td>
> > <td colspan="2" align="left">Please type your user name and password.</td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td align="left">Site</td>
> > <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td align="left">User Name</td>
> > <td align="left"><input name="UID" type="text" size="20"></td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td align="left">Password</td>
> > <td align="left"><input name="PWD" type="password" size="20"></td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
> > <td> </td>
> > </tr>
> > </table>
> > </form>
> > </center></div>
> > </body>
> > </html>
> >
> > This is logon.inc, references in here also needed changing - ok?
> > <%
> > ' Do not cache this page.
> > Response.CacheControl = "no-cache"
> >
> > ' Define the name of the users table.
> > Const USERS_TABLE = "tblUsers"
> > ' Define the path to the logon page.
> > Const LOGON_PAGE = "/logon/logon.asp"
> > ' Define the path to the logon database.
> > Const MDB_URL = "/logon/fpdb/logon.mdb"
> >
> > ' Check to see whether you have a current user name.
> > If Len(Session("UID")) = 0 Then
> > ' Are you currently on the logon page?
> > If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
> > ' If not, set a session variable for the page that made the request...
> > Session("REFERRER") = Request.ServerVariables("URL")
> > ' ...and redirect to the logon page.
> > Response.Redirect LOGON_PAGE
> > End If
> > End If
> >
> > ' This function checks for a username/password combination.
> > Function ComparePassword(UID,PWD)
> > ' Define your variables.
> > Dim strSQL, objCN, objRS
> > ' Set up your SQL string.
> > strSQL = "SELECT * FROM " & USERS_TABLE & _
> > " WHERE (UID='" & ParseText(UID) & _
> > "' AND PWD='" & ParseText(PWD) & "');"
> > ' Create a database connection object.
> > Set objCN = Server.CreateObject("ADODB.Connection")
> > ' Open the database connection object.
> > objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> > Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> > ' Run the database query.
> > Set objRS = objCN.Execute(strSQL)
> > ' Set the status to true/false for the database lookup.
> > ComparePassword = Not(objRS.EOF)
> > ' Close your database objects.
> > Set objRS = Nothing
> > Set objCN = Nothing
> > End Function
> >
> > ' This function restricts text to alpha-numeric data only.
> > Function ParseText(TXT)
> > Dim intPos, strText, intText
> > For intPos = 1 TO Len(TXT)
> > intText = Asc(Mid(TXT,intPos,1))
> > If (intText > 47 And intText < 58) Or _
> > (intText > 64 And intText < 91) Or _
> > (intText > 96 And intText < 123) Then
> > strText = strText & Mid(TXT,intPos,1)
> > End if
> > Next
> > ParseText = strText
> > End Function
> > %>
> >
> > So basically my example never loads the logon.asp page, I can click between
> > the default, secure and unsecure pages, but never get to use the logon page
> > to check testuser and password.
> >
> > Help please, if not too much trouble, could you try following the KB and see
> > if it works for you?
> >
> > All I want to do is password protect 1 page :-(
> >
> > Thanks again
> >
>
>
>
defraine [ Di, 15 Januar 2008 16:54 ] [ ID #1908151 ]

Re: Frontpage 2002 password protected page

I have used your code to create pages in a subweb. With a few
"cosmetic" changes to suit the location of the subweb your code works.
I did make one other change:

In logon.inc I changed

objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
Server.MapPath(MDB_URL) & "; uid=admin; pwd="

To

objCN.Open Application("Database1_ConnectionString")

because the code as written (changed to suit my web) caused a JET
database read error.

When you imported the database you should have been asked to move the
database to fpdb folder, and to create a database connection.
In the logon subweb's root there should be a file named global.asa -
this file contains the database connection, and
Application("Database1_ConnectionString") references this connection
string.


--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:D6D973F1-567C-410B-8D36-C9C2C314C21E [at] microsoft.com:

> OK, I am one last post away from giving up :-(
>
> I am currently following the Frontpage 2000 KB 321503. I only have
> Frontpage 2000 at work.
>
> I have a website "test" that just contains index.html This has a link to
> default.asp in my sub web "logon".
>
> Sub web logon contains.
> default.asp
> unsecure.asp
> secure.asp
> logon.asp
> logon.inc
>
> fpdb contains logon.mdb created as instructed.
> _private has no files in.
>
> Now I preview default.asp - perfect.
> I click on unsecure and get the unsecure page.
> I click on secure and get the secure page, but never re-directs to logon.asp
> I can't preview logon.asp although the outrput is fine from the preview tab
> in page view.
>
> Here is my secure.asp code, include changed from KB - ok?
> <% [at] language="vbscript" %>
> <!--#include virtual="/logon/logon.inc"-->
> <html>
> <head><title>Secure Page</title></head>
> <body>
> <h3>Secure Page</h3>
> <p>You are logged on as:
> <%
> If Len(Session("UID")) = 0 Then
> Response.Write "<b>You are not logged on.</b>"
> Else
> Response.Write "<b>" & Session("UID") & "</b>"
> End If
> %>
> </p>
> <p>Back to default</p>
> </body>
> </html>
>
> Here is logon.asp, include again changed from KB - ok?
> <% [at] language="vbscript" %>
> <!--#include virtual="/logon/logon.inc"-->
> <%
> ' Was this page posted to?
> If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
> ' If so, verify the username/password that was entered.
> If ComparePassword(Request("UID"),Request("PWD")) Then
> ' If comparison was good, store the user name...
> Session("UID") = Request("UID")
> ' ..and redirect back to the original page.
> Response.Redirect Session("REFERRER")
> End If
> End If
> %>
> <html>
> <head><title>Logon Page</title>
> <style>
> body { font-family: arial, helvetica }
> table { background-color: #cccccc; font-size: 9pt; padding: 3px }
> td { color: #000000; background-color: #cccccc; border-width: 0px }
> th { color: #ffffff; background-color: #0000cc; border-width: 0px }
> </style>
> </head>
> <body bgcolor="#000000" text="#ffffff">
> <h3 align="center"> </h3>
> <div align="center"><center>
> <form action="<%=LOGON_PAGE%>" method="POST">
> <table border="2" cellpadding="2" cellspacing="2">
> <tr>
> <th colspan="4" align="left">Enter User Name and Password</th>
> </tr>
> <tr>
> <td> </td>
> <td colspan="2" align="left">Please type your user name and password.</td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td align="left">Site</td>
> <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td align="left">User Name</td>
> <td align="left"><input name="UID" type="text" size="20"></td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td align="left">Password</td>
> <td align="left"><input name="PWD" type="password" size="20"></td>
> <td> </td>
> </tr>
> <tr>
> <td> </td>
> <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
> <td> </td>
> </tr>
> </table>
> </form>
> </center></div>
> </body>
> </html>
>
> This is logon.inc, references in here also needed changing - ok?
> <%
> ' Do not cache this page.
> Response.CacheControl = "no-cache"
>
> ' Define the name of the users table.
> Const USERS_TABLE = "tblUsers"
> ' Define the path to the logon page.
> Const LOGON_PAGE = "/logon/logon.asp"
> ' Define the path to the logon database.
> Const MDB_URL = "/logon/fpdb/logon.mdb"
>
> ' Check to see whether you have a current user name.
> If Len(Session("UID")) = 0 Then
> ' Are you currently on the logon page?
> If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
> ' If not, set a session variable for the page that made the request...
> Session("REFERRER") = Request.ServerVariables("URL")
> ' ...and redirect to the logon page.
> Response.Redirect LOGON_PAGE
> End If
> End If
>
> ' This function checks for a username/password combination.
> Function ComparePassword(UID,PWD)
> ' Define your variables.
> Dim strSQL, objCN, objRS
> ' Set up your SQL string.
> strSQL = "SELECT * FROM " & USERS_TABLE & _
> " WHERE (UID='" & ParseText(UID) & _
> "' AND PWD='" & ParseText(PWD) & "');"
> ' Create a database connection object.
> Set objCN = Server.CreateObject("ADODB.Connection")
> ' Open the database connection object.
> objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> ' Run the database query.
> Set objRS = objCN.Execute(strSQL)
> ' Set the status to true/false for the database lookup.
> ComparePassword = Not(objRS.EOF)
> ' Close your database objects.
> Set objRS = Nothing
> Set objCN = Nothing
> End Function
>
> ' This function restricts text to alpha-numeric data only.
> Function ParseText(TXT)
> Dim intPos, strText, intText
> For intPos = 1 TO Len(TXT)
> intText = Asc(Mid(TXT,intPos,1))
> If (intText > 47 And intText < 58) Or _
> (intText > 64 And intText < 91) Or _
> (intText > 96 And intText < 123) Then
> strText = strText & Mid(TXT,intPos,1)
> End if
> Next
> ParseText = strText
> End Function
> %>
>
> So basically my example never loads the logon.asp page, I can click between
> the default, secure and unsecure pages, but never get to use the logon page
> to check testuser and password.
>
> Help please, if not too much trouble, could you try following the KB and see
> if it works for you?
>
> All I want to do is password protect 1 page :-(
>
> Thanks again
Ronx [ Di, 15 Januar 2008 18:24 ] [ ID #1908154 ]

Re: Frontpage 2002 password protected page

Hi Ron,
Thanks. Will try. Am I right in saying this can ONLY be done connected to
my remoteweb. ie. I CAN'T do it locally on my C drive with preview and I
HAVE to be ONLINE?
Cheers

"Ronx" wrote:

> I have used your code to create pages in a subweb. With a few
> "cosmetic" changes to suit the location of the subweb your code works.
> I did make one other change:
>
> In logon.inc I changed
>
> objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> Server.MapPath(MDB_URL) & "; uid=admin; pwd="
>
> To
>
> objCN.Open Application("Database1_ConnectionString")
>
> because the code as written (changed to suit my web) caused a JET
> database read error.
>
> When you imported the database you should have been asked to move the
> database to fpdb folder, and to create a database connection.
> In the logon subweb's root there should be a file named global.asa -
> this file contains the database connection, and
> Application("Database1_ConnectionString") references this connection
> string.
>
>
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:D6D973F1-567C-410B-8D36-C9C2C314C21E [at] microsoft.com:
>
> > OK, I am one last post away from giving up :-(
> >
> > I am currently following the Frontpage 2000 KB 321503. I only have
> > Frontpage 2000 at work.
> >
> > I have a website "test" that just contains index.html This has a link to
> > default.asp in my sub web "logon".
> >
> > Sub web logon contains.
> > default.asp
> > unsecure.asp
> > secure.asp
> > logon.asp
> > logon.inc
> >
> > fpdb contains logon.mdb created as instructed.
> > _private has no files in.
> >
> > Now I preview default.asp - perfect.
> > I click on unsecure and get the unsecure page.
> > I click on secure and get the secure page, but never re-directs to logon.asp
> > I can't preview logon.asp although the outrput is fine from the preview tab
> > in page view.
> >
> > Here is my secure.asp code, include changed from KB - ok?
> > <% [at] language="vbscript" %>
> > <!--#include virtual="/logon/logon.inc"-->
> > <html>
> > <head><title>Secure Page</title></head>
> > <body>
> > <h3>Secure Page</h3>
> > <p>You are logged on as:
> > <%
> > If Len(Session("UID")) = 0 Then
> > Response.Write "<b>You are not logged on.</b>"
> > Else
> > Response.Write "<b>" & Session("UID") & "</b>"
> > End If
> > %>
> > </p>
> > <p>Back to default</p>
> > </body>
> > </html>
> >
> > Here is logon.asp, include again changed from KB - ok?
> > <% [at] language="vbscript" %>
> > <!--#include virtual="/logon/logon.inc"-->
> > <%
> > ' Was this page posted to?
> > If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
> > ' If so, verify the username/password that was entered.
> > If ComparePassword(Request("UID"),Request("PWD")) Then
> > ' If comparison was good, store the user name...
> > Session("UID") = Request("UID")
> > ' ..and redirect back to the original page.
> > Response.Redirect Session("REFERRER")
> > End If
> > End If
> > %>
> > <html>
> > <head><title>Logon Page</title>
> > <style>
> > body { font-family: arial, helvetica }
> > table { background-color: #cccccc; font-size: 9pt; padding: 3px }
> > td { color: #000000; background-color: #cccccc; border-width: 0px }
> > th { color: #ffffff; background-color: #0000cc; border-width: 0px }
> > </style>
> > </head>
> > <body bgcolor="#000000" text="#ffffff">
> > <h3 align="center"> </h3>
> > <div align="center"><center>
> > <form action="<%=LOGON_PAGE%>" method="POST">
> > <table border="2" cellpadding="2" cellspacing="2">
> > <tr>
> > <th colspan="4" align="left">Enter User Name and Password</th>
> > </tr>
> > <tr>
> > <td> </td>
> > <td colspan="2" align="left">Please type your user name and password.</td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td align="left">Site</td>
> > <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td align="left">User Name</td>
> > <td align="left"><input name="UID" type="text" size="20"></td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td align="left">Password</td>
> > <td align="left"><input name="PWD" type="password" size="20"></td>
> > <td> </td>
> > </tr>
> > <tr>
> > <td> </td>
> > <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
> > <td> </td>
> > </tr>
> > </table>
> > </form>
> > </center></div>
> > </body>
> > </html>
> >
> > This is logon.inc, references in here also needed changing - ok?
> > <%
> > ' Do not cache this page.
> > Response.CacheControl = "no-cache"
> >
> > ' Define the name of the users table.
> > Const USERS_TABLE = "tblUsers"
> > ' Define the path to the logon page.
> > Const LOGON_PAGE = "/logon/logon.asp"
> > ' Define the path to the logon database.
> > Const MDB_URL = "/logon/fpdb/logon.mdb"
> >
> > ' Check to see whether you have a current user name.
> > If Len(Session("UID")) = 0 Then
> > ' Are you currently on the logon page?
> > If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
> > ' If not, set a session variable for the page that made the request...
> > Session("REFERRER") = Request.ServerVariables("URL")
> > ' ...and redirect to the logon page.
> > Response.Redirect LOGON_PAGE
> > End If
> > End If
> >
> > ' This function checks for a username/password combination.
> > Function ComparePassword(UID,PWD)
> > ' Define your variables.
> > Dim strSQL, objCN, objRS
> > ' Set up your SQL string.
> > strSQL = "SELECT * FROM " & USERS_TABLE & _
> > " WHERE (UID='" & ParseText(UID) & _
> > "' AND PWD='" & ParseText(PWD) & "');"
> > ' Create a database connection object.
> > Set objCN = Server.CreateObject("ADODB.Connection")
> > ' Open the database connection object.
> > objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> > Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> > ' Run the database query.
> > Set objRS = objCN.Execute(strSQL)
> > ' Set the status to true/false for the database lookup.
> > ComparePassword = Not(objRS.EOF)
> > ' Close your database objects.
> > Set objRS = Nothing
> > Set objCN = Nothing
> > End Function
> >
> > ' This function restricts text to alpha-numeric data only.
> > Function ParseText(TXT)
> > Dim intPos, strText, intText
> > For intPos = 1 TO Len(TXT)
> > intText = Asc(Mid(TXT,intPos,1))
> > If (intText > 47 And intText < 58) Or _
> > (intText > 64 And intText < 91) Or _
> > (intText > 96 And intText < 123) Then
> > strText = strText & Mid(TXT,intPos,1)
> > End if
> > Next
> > ParseText = strText
> > End Function
> > %>
> >
> > So basically my example never loads the logon.asp page, I can click between
> > the default, secure and unsecure pages, but never get to use the logon page
> > to check testuser and password.
> >
> > Help please, if not too much trouble, could you try following the KB and see
> > if it works for you?
> >
> > All I want to do is password protect 1 page :-(
> >
> > Thanks again
>
>
defraine [ Mi, 16 Januar 2008 12:19 ] [ ID #1909383 ]

Re: Frontpage 2002 password protected page

If you are using a server based web, accessed in FrontPage using
http://localhost/ or http://localhost/webname then it can be done
locally. Otherwise you can set up the files required, but must publish
to a server to test.
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp




"defraine" <defraine [at] discussions.microsoft.com> wrote in message
news:B447E951-6054-4F1F-9CAC-73B9C190F296 [at] microsoft.com:

> Hi Ron,
> Thanks. Will try. Am I right in saying this can ONLY be done connected to
> my remoteweb. ie. I CAN'T do it locally on my C drive with preview and I
> HAVE to be ONLINE?
> Cheers
>
> "Ronx" wrote:
>
> > I have used your code to create pages in a subweb. With a few
> > "cosmetic" changes to suit the location of the subweb your code works.
> > I did make one other change:
> >
> > In logon.inc I changed
> >
> > objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> > Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> >
> > To
> >
> > objCN.Open Application("Database1_ConnectionString")
> >
> > because the code as written (changed to suit my web) caused a JET
> > database read error.
> >
> > When you imported the database you should have been asked to move the
> > database to fpdb folder, and to create a database connection.
> > In the logon subweb's root there should be a file named global.asa -
> > this file contains the database connection, and
> > Application("Database1_ConnectionString") references this connection
> > string.
> >
> >
> > --
> > Ron Symonds - Microsoft MVP (FrontPage)
> > Reply only to group - emails will be deleted unread.
> >
> > http://www.rxs-enterprises.org/fp
> >
> >
> >
> >
> > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > news:D6D973F1-567C-410B-8D36-C9C2C314C21E [at] microsoft.com:
> >
> > > OK, I am one last post away from giving up :-(
> > >
> > > I am currently following the Frontpage 2000 KB 321503. I only have
> > > Frontpage 2000 at work.
> > >
> > > I have a website "test" that just contains index.html This has a link to
> > > default.asp in my sub web "logon".
> > >
> > > Sub web logon contains.
> > > default.asp
> > > unsecure.asp
> > > secure.asp
> > > logon.asp
> > > logon.inc
> > >
> > > fpdb contains logon.mdb created as instructed.
> > > _private has no files in.
> > >
> > > Now I preview default.asp - perfect.
> > > I click on unsecure and get the unsecure page.
> > > I click on secure and get the secure page, but never re-directs to logon.asp
> > > I can't preview logon.asp although the outrput is fine from the preview tab
> > > in page view.
> > >
> > > Here is my secure.asp code, include changed from KB - ok?
> > > <% [at] language="vbscript" %>
> > > <!--#include virtual="/logon/logon.inc"-->
> > > <html>
> > > <head><title>Secure Page</title></head>
> > > <body>
> > > <h3>Secure Page</h3>
> > > <p>You are logged on as:
> > > <%
> > > If Len(Session("UID")) = 0 Then
> > > Response.Write "<b>You are not logged on.</b>"
> > > Else
> > > Response.Write "<b>" & Session("UID") & "</b>"
> > > End If
> > > %>
> > > </p>
> > > <p>Back to default</p>
> > > </body>
> > > </html>
> > >
> > > Here is logon.asp, include again changed from KB - ok?
> > > <% [at] language="vbscript" %>
> > > <!--#include virtual="/logon/logon.inc"-->
> > > <%
> > > ' Was this page posted to?
> > > If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
> > > ' If so, verify the username/password that was entered.
> > > If ComparePassword(Request("UID"),Request("PWD")) Then
> > > ' If comparison was good, store the user name...
> > > Session("UID") = Request("UID")
> > > ' ..and redirect back to the original page.
> > > Response.Redirect Session("REFERRER")
> > > End If
> > > End If
> > > %>
> > > <html>
> > > <head><title>Logon Page</title>
> > > <style>
> > > body { font-family: arial, helvetica }
> > > table { background-color: #cccccc; font-size: 9pt; padding: 3px }
> > > td { color: #000000; background-color: #cccccc; border-width: 0px }
> > > th { color: #ffffff; background-color: #0000cc; border-width: 0px }
> > > </style>
> > > </head>
> > > <body bgcolor="#000000" text="#ffffff">
> > > <h3 align="center"> </h3>
> > > <div align="center"><center>
> > > <form action="<%=LOGON_PAGE%>" method="POST">
> > > <table border="2" cellpadding="2" cellspacing="2">
> > > <tr>
> > > <th colspan="4" align="left">Enter User Name and Password</th>
> > > </tr>
> > > <tr>
> > > <td> </td>
> > > <td colspan="2" align="left">Please type your user name and password.</td>
> > > <td> </td>
> > > </tr>
> > > <tr>
> > > <td> </td>
> > > <td align="left">Site</td>
> > > <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
> > > <td> </td>
> > > </tr>
> > > <tr>
> > > <td> </td>
> > > <td align="left">User Name</td>
> > > <td align="left"><input name="UID" type="text" size="20"></td>
> > > <td> </td>
> > > </tr>
> > > <tr>
> > > <td> </td>
> > > <td align="left">Password</td>
> > > <td align="left"><input name="PWD" type="password" size="20"></td>
> > > <td> </td>
> > > </tr>
> > > <tr>
> > > <td> </td>
> > > <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
> > > <td> </td>
> > > </tr>
> > > </table>
> > > </form>
> > > </center></div>
> > > </body>
> > > </html>
> > >
> > > This is logon.inc, references in here also needed changing - ok?
> > > <%
> > > ' Do not cache this page.
> > > Response.CacheControl = "no-cache"
> > >
> > > ' Define the name of the users table.
> > > Const USERS_TABLE = "tblUsers"
> > > ' Define the path to the logon page.
> > > Const LOGON_PAGE = "/logon/logon.asp"
> > > ' Define the path to the logon database.
> > > Const MDB_URL = "/logon/fpdb/logon.mdb"
> > >
> > > ' Check to see whether you have a current user name.
> > > If Len(Session("UID")) = 0 Then
> > > ' Are you currently on the logon page?
> > > If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
> > > ' If not, set a session variable for the page that made the request...
> > > Session("REFERRER") = Request.ServerVariables("URL")
> > > ' ...and redirect to the logon page.
> > > Response.Redirect LOGON_PAGE
> > > End If
> > > End If
> > >
> > > ' This function checks for a username/password combination.
> > > Function ComparePassword(UID,PWD)
> > > ' Define your variables.
> > > Dim strSQL, objCN, objRS
> > > ' Set up your SQL string.
> > > strSQL = "SELECT * FROM " & USERS_TABLE & _
> > > " WHERE (UID='" & ParseText(UID) & _
> > > "' AND PWD='" & ParseText(PWD) & "');"
> > > ' Create a database connection object.
> > > Set objCN = Server.CreateObject("ADODB.Connection")
> > > ' Open the database connection object.
> > > objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> > > Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> > > ' Run the database query.
> > > Set objRS = objCN.Execute(strSQL)
> > > ' Set the status to true/false for the database lookup.
> > > ComparePassword = Not(objRS.EOF)
> > > ' Close your database objects.
> > > Set objRS = Nothing
> > > Set objCN = Nothing
> > > End Function
> > >
> > > ' This function restricts text to alpha-numeric data only.
> > > Function ParseText(TXT)
> > > Dim intPos, strText, intText
> > > For intPos = 1 TO Len(TXT)
> > > intText = Asc(Mid(TXT,intPos,1))
> > > If (intText > 47 And intText < 58) Or _
> > > (intText > 64 And intText < 91) Or _
> > > (intText > 96 And intText < 123) Then
> > > strText = strText & Mid(TXT,intPos,1)
> > > End if
> > > Next
> > > ParseText = strText
> > > End Function
> > > %>
> > >
> > > So basically my example never loads the logon.asp page, I can click between
> > > the default, secure and unsecure pages, but never get to use the logon page
> > > to check testuser and password.
> > >
> > > Help please, if not too much trouble, could you try following the KB and see
> > > if it works for you?
> > >
> > > All I want to do is password protect 1 page :-(
> > >
> > > Thanks again
> >
> >
Ronx [ Mi, 16 Januar 2008 12:41 ] [ ID #1909384 ]

Re: Frontpage 2002 password protected page

Thanks, was all down to me being on my C drive and not using remote server.

Thanks for your time and hanging in there.

Sean

"Ronx" wrote:

> If you are using a server based web, accessed in FrontPage using
> http://localhost/ or http://localhost/webname then it can be done
> locally. Otherwise you can set up the files required, but must publish
> to a server to test.
> --
> Ron Symonds - Microsoft MVP (FrontPage)
> Reply only to group - emails will be deleted unread.
>
> http://www.rxs-enterprises.org/fp
>
>
>
>
> "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> news:B447E951-6054-4F1F-9CAC-73B9C190F296 [at] microsoft.com:
>
> > Hi Ron,
> > Thanks. Will try. Am I right in saying this can ONLY be done connected to
> > my remoteweb. ie. I CAN'T do it locally on my C drive with preview and I
> > HAVE to be ONLINE?
> > Cheers
> >
> > "Ronx" wrote:
> >
> > > I have used your code to create pages in a subweb. With a few
> > > "cosmetic" changes to suit the location of the subweb your code works.
> > > I did make one other change:
> > >
> > > In logon.inc I changed
> > >
> > > objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> > > Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> > >
> > > To
> > >
> > > objCN.Open Application("Database1_ConnectionString")
> > >
> > > because the code as written (changed to suit my web) caused a JET
> > > database read error.
> > >
> > > When you imported the database you should have been asked to move the
> > > database to fpdb folder, and to create a database connection.
> > > In the logon subweb's root there should be a file named global.asa -
> > > this file contains the database connection, and
> > > Application("Database1_ConnectionString") references this connection
> > > string.
> > >
> > >
> > > --
> > > Ron Symonds - Microsoft MVP (FrontPage)
> > > Reply only to group - emails will be deleted unread.
> > >
> > > http://www.rxs-enterprises.org/fp
> > >
> > >
> > >
> > >
> > > "defraine" <defraine [at] discussions.microsoft.com> wrote in message
> > > news:D6D973F1-567C-410B-8D36-C9C2C314C21E [at] microsoft.com:
> > >
> > > > OK, I am one last post away from giving up :-(
> > > >
> > > > I am currently following the Frontpage 2000 KB 321503. I only have
> > > > Frontpage 2000 at work.
> > > >
> > > > I have a website "test" that just contains index.html This has a link to
> > > > default.asp in my sub web "logon".
> > > >
> > > > Sub web logon contains.
> > > > default.asp
> > > > unsecure.asp
> > > > secure.asp
> > > > logon.asp
> > > > logon.inc
> > > >
> > > > fpdb contains logon.mdb created as instructed.
> > > > _private has no files in.
> > > >
> > > > Now I preview default.asp - perfect.
> > > > I click on unsecure and get the unsecure page.
> > > > I click on secure and get the secure page, but never re-directs to logon.asp
> > > > I can't preview logon.asp although the outrput is fine from the preview tab
> > > > in page view.
> > > >
> > > > Here is my secure.asp code, include changed from KB - ok?
> > > > <% [at] language="vbscript" %>
> > > > <!--#include virtual="/logon/logon.inc"-->
> > > > <html>
> > > > <head><title>Secure Page</title></head>
> > > > <body>
> > > > <h3>Secure Page</h3>
> > > > <p>You are logged on as:
> > > > <%
> > > > If Len(Session("UID")) = 0 Then
> > > > Response.Write "<b>You are not logged on.</b>"
> > > > Else
> > > > Response.Write "<b>" & Session("UID") & "</b>"
> > > > End If
> > > > %>
> > > > </p>
> > > > <p>Back to default</p>
> > > > </body>
> > > > </html>
> > > >
> > > > Here is logon.asp, include again changed from KB - ok?
> > > > <% [at] language="vbscript" %>
> > > > <!--#include virtual="/logon/logon.inc"-->
> > > > <%
> > > > ' Was this page posted to?
> > > > If UCase(Request.ServerVariables("HTTP_METHOD")) = "POST" Then
> > > > ' If so, verify the username/password that was entered.
> > > > If ComparePassword(Request("UID"),Request("PWD")) Then
> > > > ' If comparison was good, store the user name...
> > > > Session("UID") = Request("UID")
> > > > ' ..and redirect back to the original page.
> > > > Response.Redirect Session("REFERRER")
> > > > End If
> > > > End If
> > > > %>
> > > > <html>
> > > > <head><title>Logon Page</title>
> > > > <style>
> > > > body { font-family: arial, helvetica }
> > > > table { background-color: #cccccc; font-size: 9pt; padding: 3px }
> > > > td { color: #000000; background-color: #cccccc; border-width: 0px }
> > > > th { color: #ffffff; background-color: #0000cc; border-width: 0px }
> > > > </style>
> > > > </head>
> > > > <body bgcolor="#000000" text="#ffffff">
> > > > <h3 align="center"> </h3>
> > > > <div align="center"><center>
> > > > <form action="<%=LOGON_PAGE%>" method="POST">
> > > > <table border="2" cellpadding="2" cellspacing="2">
> > > > <tr>
> > > > <th colspan="4" align="left">Enter User Name and Password</th>
> > > > </tr>
> > > > <tr>
> > > > <td> </td>
> > > > <td colspan="2" align="left">Please type your user name and password.</td>
> > > > <td> </td>
> > > > </tr>
> > > > <tr>
> > > > <td> </td>
> > > > <td align="left">Site</td>
> > > > <td align="left"><%=Request.ServerVariables("SERVER_NAME")%> </td>
> > > > <td> </td>
> > > > </tr>
> > > > <tr>
> > > > <td> </td>
> > > > <td align="left">User Name</td>
> > > > <td align="left"><input name="UID" type="text" size="20"></td>
> > > > <td> </td>
> > > > </tr>
> > > > <tr>
> > > > <td> </td>
> > > > <td align="left">Password</td>
> > > > <td align="left"><input name="PWD" type="password" size="20"></td>
> > > > <td> </td>
> > > > </tr>
> > > > <tr>
> > > > <td> </td>
> > > > <td colspan="2" align="center"><input type="submit" value="LOGON"></td>
> > > > <td> </td>
> > > > </tr>
> > > > </table>
> > > > </form>
> > > > </center></div>
> > > > </body>
> > > > </html>
> > > >
> > > > This is logon.inc, references in here also needed changing - ok?
> > > > <%
> > > > ' Do not cache this page.
> > > > Response.CacheControl = "no-cache"
> > > >
> > > > ' Define the name of the users table.
> > > > Const USERS_TABLE = "tblUsers"
> > > > ' Define the path to the logon page.
> > > > Const LOGON_PAGE = "/logon/logon.asp"
> > > > ' Define the path to the logon database.
> > > > Const MDB_URL = "/logon/fpdb/logon.mdb"
> > > >
> > > > ' Check to see whether you have a current user name.
> > > > If Len(Session("UID")) = 0 Then
> > > > ' Are you currently on the logon page?
> > > > If LCase(LOGON_PAGE) <> LCase(Request.ServerVariables("URL")) Then
> > > > ' If not, set a session variable for the page that made the request...
> > > > Session("REFERRER") = Request.ServerVariables("URL")
> > > > ' ...and redirect to the logon page.
> > > > Response.Redirect LOGON_PAGE
> > > > End If
> > > > End If
> > > >
> > > > ' This function checks for a username/password combination.
> > > > Function ComparePassword(UID,PWD)
> > > > ' Define your variables.
> > > > Dim strSQL, objCN, objRS
> > > > ' Set up your SQL string.
> > > > strSQL = "SELECT * FROM " & USERS_TABLE & _
> > > > " WHERE (UID='" & ParseText(UID) & _
> > > > "' AND PWD='" & ParseText(PWD) & "');"
> > > > ' Create a database connection object.
> > > > Set objCN = Server.CreateObject("ADODB.Connection")
> > > > ' Open the database connection object.
> > > > objCN.Open "driver={Microsoft Access Driver (*.mdb)}; dbq=" & _
> > > > Server.MapPath(MDB_URL) & "; uid=admin; pwd="
> > > > ' Run the database query.
> > > > Set objRS = objCN.Execute(strSQL)
> > > > ' Set the status to true/false for the database lookup.
> > > > ComparePassword = Not(objRS.EOF)
> > > > ' Close your database objects.
> > > > Set objRS = Nothing
> > > > Set objCN = Nothing
> > > > End Function
> > > >
> > > > ' This function restricts text to alpha-numeric data only.
> > > > Function ParseText(TXT)
> > > > Dim intPos, strText, intText
> > > > For intPos = 1 TO Len(TXT)
> > > > intText = Asc(Mid(TXT,intPos,1))
> > > > If (intText > 47 And intText < 58) Or _
> > > > (intText > 64 And intText < 91) Or _
> > > > (intText > 96 And intText < 123) Then
> > > > strText = strText & Mid(TXT,intPos,1)
> > > > End if
> > > > Next
> > > > ParseText = strText
> > > > End Function
> > > > %>
> > > >
> > > > So basically my example never loads the logon.asp page, I can click between
> > > > the default, secure and unsecure pages, but never get to use the logon page
> > > > to check testuser and password.
> > > >
> > > > Help please, if not too much trouble, could you try following the KB and see
> > > > if it works for you?
> > > >
> > > > All I want to do is password protect 1 page :-(
> > > >
> > > > Thanks again
> > >
> > >
>
>
defraine [ Fr, 18 Januar 2008 15:52 ] [ ID #1911261 ]
Microsoft » microsoft.public.frontpage.client » Frontpage 2002 password protected page

Vorheriges Thema: Unable to successfully FTP updated information in tag/bot
Nächstes Thema: Can't connect to my web server