Includes are disappearing

B

Brian

I havea user who set up an intranet site that takes a
daily message from form input and displays it somewhere
else. The end user submits a form. That form uses bots
to write to an htm. Then there is an html page that uses
bots to insert the contents of that for response file
into itself. The problem: the thing is so fragile, it's
impractical. Not to mention that, although the bot gives
you many options on how get the contents of the form into
the file, overwrite isn't one of them. She had it
perfectly written, except it would just append on itself
and you'd see the last X days of messages instead of the
daily message. I rewrote the form part of this in asp.
Now the frontpage bot that takes and inserts the contents
of my page don't do anything. Actually, if you want to
get technical, it works perfectly when viewed within
frontpage itself, but when you in IE directly (like the
rest of the world will do), then the includes are
compelety invisible. She seemed to think that it had
something to do with the fact that front page would store
the results in a table, but my asp form stores it as a
plain text thing. We can't get it to test consistantly
enough to say that is true or false.

Can anyone help?
 
J

Jim Buyens

I would probably set up a database with two fields (date
and message) and a simple maintenance function.

Then, on the display page, I would do a database lookup
for the first record >= the current date (or if that
fails, the last record <= the current date) and display
that mesage.

This has the added advantage that the user can load up
future messages all at once, instead of manually changing
the message every day.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------
 

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