Hi, I wish to write the output of a form to a file in the folder in which the e-book files have been decompressed and then read this file back into another page in the e-book.
I don't want the user to be prompted for a path as in the example on Ebookcode.com, it must just save it as say "form1_output.txt"
I've got a little bit of knowledge of ASP but I'm really struggling with this.
1+2. What you'll need to do is display the next page using DISPLAY
A good trick would be to create an Activ Variable in the compiler contain the top half of the HTML page's code, create another variable with the bottom half, and then fill in the middle yourself based on what you read back from the file
e.g. DISPLAY('{tophalf}{mydata}{bothalf}')
You set up mydata at runtime based on what you read back.
So here goes
They submit the form You run the script, by making ACTION=#!myscript.as myscript.as contains the code You store the data into a file or whatever You display the page using DISPLAY
Actually unless you really need to permanently store the data, why not simply display the next page based on the form contents.
It's difficult to answer, without knowing the specifics of what you want to achieve
I did it by creating a template html file, loading that as an activ variable and then using strreplace to search for a nonsensical piece of text within the template file. and then writing this file to the disk. This also allows me to load the dynamically generated page into a frame and gives the ability to put different activ variables into different parts of the created page.
One last Q. Is there a way to make activ scripts run say onpageload?
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
Disclosure:
Our company's websites' content (including this website's content) includes advertisements for
our own company's websites, products, and services,
and for other organization's websites, products, and services.
In the case of links to other organization's websites,
our company may receive a payment, (1) if you purchase products or services,
or (2) if you sign-up for third party offers, after following links from this website.
Unless specifically otherwise stated, information about other organization's products and services,
is based on information provided by that organization,
the product/service vendor, and/or publicly available information - and should
not be taken to mean that we have used the product/service in question.
Additionally, our company's websites contain some adverts which we are paid
to display, but whose content is not selected by us, such as Google AdSense ads. For more
detailed information, please see Advertising/Endorsements Disclosures