Page Reload

L

laura

I'm doing a page which gathers some text in the form of a text box in a
<form>. This text is saved to a text file, notices.txt and I want to be able
to display the saved text on the same page, as soon as they click the SUBMIT
button - is this possible?

When the page initially loads, the text from notices.txt is displayed at the
top of the page with <!--#INCLUDE FILE="notices.txt"--> and they are given a
form in which to add new text to replace the existing.

At the moment I have a hyperlink called "back" which, once they have entered
the text and they have clicked SUBMIT, the "back" hyperlink will clear away
the form, refresh the page and it displays the newly entered text just fine.

However, I want to avoid them having to press two things in order to see
the text they have entered.. i.e., can
the submit button also totally refresh the page and display the newly
entered text? At the moment the page seems to refresh, but the "old" text is
displayed, even though I have written the new text to the text file.

I'm confused and don't know why the <!--#INCLUDE FILE="notices.txt"-->
doesn't pick up the newly saved text when the page refreshes (if it
refreshes).
Thanks
Laura TD
 
D

Dave Clark

laura said:
I'm confused and don't know why the <!--#INCLUDE FILE="notices.txt"-->
doesn't pick up the newly saved text when the page refreshes (if it
refreshes).

Are you using a FrontPage component for saving the form
information to this text file? What does your client-side FORM tag content
look like (i.e., after publishing) and what is the name of your FORM
document? There can be at least a couple of reasons why you don't see the
added text -- one having to do with caching and the other having to do with
timing between when the form content is processed on the server side and when
the content of the text file is actually sent to the browser.

Dave

www.DaveClarkConsulting.com
 
S

Steve Easton

The include file feature in FrontPage is a "design time" feature, which means the included content
is added to the page when you save the page in FrontPage.

You would need to use a "server side include" to do what you want.

Or you can use either a Guestbook or Feedback form

You can find both by Click File > New > More web site templates.

hth

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
D

Dave Clark

Steve Easton said:
The include file feature in FrontPage is a "design time" feature, which
means the included content is added to the page when you save the
page in FrontPage.

You would need to use a "server side include" to do what you want.

Huh?!? She said she was using the following -- which *is* a
server-side include.

<!--#INCLUDE FILE="notices.txt"-->

Dave

www.DaveClarkConsulting.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