eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
Learn How To Create, Publish & Market E-Books
E-Book Creation Software
Add sophisticated multimedia to your E-Books
Create E-Book covers in minutes
E-Book Marketing & Promotion made easy
Search engine for E-Books
Interviews with eBook authors
Tools for building better eBooks
Archived Message:

Writing form to file and then reading it back

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

Can anyone help?


Posted on: 8:15 pm on April 24, 2004
DavidvdW OK well I've got the file written now I need to read it back on the next page.

How do I

1. Place the saved text onto the next page?
2. Write the form so that clicking on submit opens the next page with the text on it?

Please help me. I'm a noobie but I really want to learn


David vdW

Posted on: 10:51 pm on April 26, 2004
EBookCompiler 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


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

Posted on: 5:36 pm on April 29, 2004
DavidvdW THanks Sunil, I hadn't got that solution.

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?


David vdW

Posted on: 6:33 pm on April 29, 2004
EBookCompiler This isn't terribly good, but

Try in the HTML onLoad putting window.external.ActivRun

ActivRun is covered in our Help

Posted on: 6:03 pm on May 6, 2004


List All Archived Forums

Copyright © 2000-2018, Answers 2000 Limited.

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

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures