How do I stop FP 03 from changing my code?

G

Guest

OK,
First of all, I've been using FP03 for at least 2 years without this
problem. I recently overhauled my computer and installed a new hard drive. I
reinstalled FP and now whenever I save a page, it changes all of my HTML.

For example, I have a PHP header page which I include in all of my pages on
a certain site which is entirely PHP based. Now, whenever I edit any page
with the header include, FP adds a <head> and </head> tag around the top of
my page. I need it to stop doing this. It never did this before. I now have
two <head> and two </head> tags on every page and I cannot get rid of them
normally. It also won't allow me to change the link to my CSS files, it keeps
reinserting a base location for the CSS file which does not exist. I had to
actually move the CSS file where FP told me it was located.
 
S

Stefan B Rusynko

Not possible unless you set your pages in FP to be edited in notepad or in FP as text (not html)

IMHO
any server side scripting that violates Html rules is a poor design
- your .php pages (and SSI) should be valid stand alone html pages or code block snippets

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPageNewsGroups/tabid/53/Default.aspx
_____________________________________________


| OK,
| First of all, I've been using FP03 for at least 2 years without this
| problem. I recently overhauled my computer and installed a new hard drive. I
| reinstalled FP and now whenever I save a page, it changes all of my HTML.
|
| For example, I have a PHP header page which I include in all of my pages on
| a certain site which is entirely PHP based. Now, whenever I edit any page
| with the header include, FP adds a <head> and </head> tag around the top of
| my page. I need it to stop doing this. It never did this before. I now have
| two <head> and two </head> tags on every page and I cannot get rid of them
| normally. It also won't allow me to change the link to my CSS files, it keeps
| reinserting a base location for the CSS file which does not exist. I had to
| actually move the CSS file where FP told me it was located.
 
G

Guest

included Well, if it didn't work before, I'd agree with you, but I've been
using FP 03 for around 3 years and it always worked in HTML mode until this
last re-install.

I don't understand what you mean about violating HTML rules. What are you
talking about? I didn't mention any HTML rules other than what FP is trying
to do, which is what I do not want it to do. These pages are neither stand
alone pages nor SSI pages, they are all parts of a compiled page, like a
PHPBB forum, for example. If you look into one of those, you will see that
each page is made up of several separate PHP include pages as well as
template files. My pages are similar, although far less complicated. I do not
need each page to have it's own <head> tags. In fact, these tags cause
several errors to be displayed on my pages since they are trying to output
header content more than once. I only noticed this problem by previewing the
pages in a browser. As I said, this has never happened before and all of my
settings are the same as all previous installs.
 

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