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:

Advanced Forms and Files question?

Carlos Hi all,

Although it's the first time I post here, I often read posts.

So, here's my problem:

I have a form where users enter some data to generate HTML code. The HTML code is displayed in the same page in a textarea field (name Results) in the same form when user clicks "Generate HTML".

How can I do this (if possible):

1. Open the Results (textarea with generated HTML code) in a Notepad window. In other words, once the HTML code is generated is it possible to have a button that when the user clicks, it opens a notepad window with the same content as the textarea field?

2. Save ONLY the Results (content of textarea field) into a file?

3. Store the info (just the data entered in the form) in a file? They can have several files with different data and the file name is the one that entered in a field.

4. Retrieve (open) a particular file and populate a form with the data stored in that file. User would have to choose what file to open.


Posted on: 7:04 pm on January 17, 2003
EBookCompiler You need to make a file to open in Notepad

In the submit function run an Activ Script to
1. Use FSET to retrieve the field contents
2. Use the FILESAVEPROMPT/FILESAVEPROMPT2 functions to ask for the file name
3. Write the file out using FILEWRITE
4. Kick off notepad using something RUN('NOTEPAD.EXE {filename}'

To retrieve a file. Is a little more difficult
1. As there isn't a FILEOPENPROMPT command at present. I guess you could make your own form or store a list of recently used files in the earlier step and provide a way to pick from them using a drop down list or select
2. Read the file using FILEREAD
3. DISPLAY a page, expanding that variable

Posted on: 11:06 am on January 18, 2003
Carlos Thanks Sunil,

What if I store the file names in INI file, get the list and prompt user to select one. Then I could check if file exists or not and open it.

Is there any concerns I must have by using this method?


Posted on: 4:30 pm on January 18, 2003
EBookCompiler Well I can't think of too much, but I suppose it depends on the application.  I wouldn't do it like this for anything that need to be a secure application...

Try and verify the file exists and contains the right kind of stuff when you read it back... that kind of thing

Posted on: 4:01 pm on January 19, 2003

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