How do I insert above the Automatically Generated Content?

C

Crusty

Hello! I just can't seem to crack this one! I am using FrontPage 2003 &
Access 2003. I have created a password-protected page to add records to the
database according to the instructions here:
http://support.microsoft.com/kb/825498
Here's the problem ... FP automatically generates the form details to the
first line of the code, but to make the password work, this needs to be the
first part of the code:
<% @language="vbscript" %>
<!--#include virtual="/_private/logon.inc"-->
How do I INSERT those lines so that FP does not move them down automatically?
Thanks!
 
T

Thomas A. Rowe

First, you really don't need the line:
<% @language="vbscript" %>

Second in HTML / Code View place the following at the very top of your page before the open HTML
tag.
Also for additional security, rename login.inc to login.asp.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
T

Thomas A. Rowe

<!--#include virtual="/_private/logon.inc"-->

rename actual file and it link to be:

<!--#include virtual="/_private/logon.asp"-->

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
M

Murray

I see - I was confused by this comment -

It seemed to imply that you were going to suggest a line of code, but you
were referring to the 2nd line of the two-line snippet in the original post,
I think.
 
T

Thomas A. Rowe

Either that or I meant to past the line of code with my suggested change.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 
C

Crusty

Thanks for the reply ... however, FP is still hijacking the top of the page!
I changed the logon.inc to logon.asp and eliminated the 'language' line, but
when I save the file, this:
<%
' FP_ASP ASP Automatically generated by a FrontPage Component. Do not Edit.
and 80+ lines of form submission code jump to the top and bump that line down.
The question is not with the password code, it is getting my code to stick
to the top and not get bumped when FP automatically generates that form
handler.
Thanks again!
 
T

Thomas A. Rowe

Can you paste into a reply to this message, the top part of your page's code?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================
 

Ask a Question

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

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

Ask a Question

Top