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
<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