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:

How to SAVE entries in form text boxes

Brad Does anyone know how to setup an ebook that allows a reader to "save" information entered into a "form" “text box” so that it can be viewed and/or edited later (next time they open it)?


Posted on: 8:26 pm on July 9, 2005
EBookCompiler Have a look athttp://www.ebookcode.com/scripts/form1.htm

Also, try the search link and search for FSET to find older discussions about this topic.

Posted on: 3:41 am on July 10, 2005
Brad Hi Sunil,

Thank you for responding so quickly!

I’ll give your suggestions a try.  Although I am new to scripts, I think I’ll be able to figure it out in time.

By the way, I am thoroughly pleased with your software.  It’s great fun creating ebooks using the Activ Ebook Compiler.

Best regards,


Posted on: 8:06 pm on July 10, 2005
Brad Hi Sunil,

I was able to get the script that you suggested to work, but it does not really do what I need.  (I also searched the forum and help, but I couldn’t find a solution.)  Being a novice with scripts, I probably did not explain what I was after very well.

Here it goes: I want the ebook user to be able to enter information (data) into various form text boxes and save it (so that they can refer to it next time they open their ebook) and also update it when they need to in the future.  

In other words, the information that the user enters would still be shown in the form text boxes next time they open their ebook.

Any ideas?


Posted on: 8:07 pm on July 11, 2005
RoxNH This is something I am very interested in as well.  I have looked through the help files and on this forum but I can't seem to find an answer either way.

BTW Great E-Book Compiler - I love it.

Posted on: 5:26 pm on July 12, 2005
EBookCompiler The link I posted earlier is the first half of the solution.

The second half has been discussed previously on this forum (as I said search for FSET), for example,http://www.ebookfriends.com/cgi-bin/ikonboard/topic.cgi?forum=1&topic=268

Posted on: 3:46 am on July 13, 2005
Brad Sunil,

I did do a search using FSET (and others too), as you suggested, but I could not identify a fit with what I wanted to do.

I carefully looked at the link (topic=268) you provided and the previous one as well, many times, and tested them too.  But I still cannot figure out how to make it all work to accomplish what I want to do.  I must have a broken circuit in my brain or something.

Sorry to be a pest, but I have many uses for this capability in my ebooks.

To reaffirm: I just want user “entries” into one-line form text boxes to “remain” there so that the user will be able to view it and/or update it next time they open their ebook or turn pages back to it.  I do not need to save the entries to a file, as the ebookcode.com and forum examples do.

Please advise.

Thank you,


Posted on: 7:10 pm on July 19, 2005
EBookCompiler Suddenly I had a moment of clarity after reading your last post.

I hadn't previously understood the question correctly, and where your difficulty lay.

What you need to do is 2 steps:

1. Write an Activ Script to display the form.  In the form it populates the form fields based on values you read back from a file.

If you don't find the file, then the form fields initial values are blank

What you do is concanentate the HTML all together in one long string, then display it using the DISPLAY command.

2. When the form is submitted, you run a second script. This saves the values entered into the file (using a similar approach to the link I gave previously).

I hope this helps as a 10,000 feet overview.

Now to the details... if you need help on the script coding, get as far as you can, then post what you have.

I would post more, but I can't get to the computer which has the ebook compiler setup for me to show you the exact scripts.  The computer is right next to me, but all disconnected and unplugged, and I can't physically bend over to crawl around and plug the cables in, because I hurt my leg playing football on Sunday.

So, if you post as far as you get, I'll try to point you in the right direction.  If you're not getting anywhere, let me know, and I will post a detailed follow-up as soon as I can (probably at least a couple of days).

Posted on: 9:58 pm on July 19, 2005
Brad Hi Sunil,

I wish I could say that I understand, but I don't.

I looked at everything again (the links you provided and Activ Ebook “Help”) and I am not getting anywhere.

If you don't mind and if it's not too much trouble, I'll wait for your “detailed” response.  Looks like I am going to need it.

Look after your leg and I'll wait to hear from you when you are back in action.

Thank you for your patience and help.


Posted on: 11:49 pm on July 20, 2005
Storyman Brad wrote:
"To reaffirm: I just want user “entries”...to “remain”...so that the user will be able to view it...[the] next time they open their ebook...  I do not need to save the entries to a file..."

I suspect part of the confusion is that in order for the 'text box data' to be persistent even after closing and reopening the ebook it does need to be written to a file.

If you feel that this doesn't define your objective please clarify, otherwise the links Sunil provided should assist you in your quest.

Posted on: 12:59 am on July 21, 2005
Brad Hi Storyman,

Thank you for the posting, but I am going to need Sunil’s detailed response in order to achieve my objective.

Writing the data to a file makes sense, but I do not know how to do it in the way I’ve described above.  And the links that you mentioned do not fully represent what I want to do either.

A similar posting entitled, “How to create an interactive program that updates entries” (link show below) appears to be seeking the same capability.



Posted on: 6:19 pm on July 21, 2005
Storyman Brad,

Sunil is a busy guy and if he's gracious enough to provide you with a tutorial on writing files you are a fortunate person indeed. (There are many of us who are hoping he'll devote his time to the release of a greatly anticipated version 5.)

Your request seems pretty straight forward. You appear to want to create a form with a text box, yes? You would like the text entered to persist even after the ebook is closed, then reopened, yes?

If this is not want you want please clarify so someone can help you.

Is the reason you need a detailed response from Sunil is that you are unsure of coding? You'll find several tutorials on the subject if you search for: "tutorial form global variables text box javascript". You might need to alter the search a bit, but it should get you to where you want to go. If you really don't want to delve into programming, then consider hiring someone to write the script for you. It isn't realistic to expect personalized tutorials for basic programming.

Also, you might contact the author of the thread you referenced. That person may have found the answer and will share it with you.

Posted on: 7:56 pm on July 21, 2005
EBookCompiler Storyman, I'm not currently able to work on version 5 at the moment for the same reason as I can't answer Brad's question. It's on the other computer (actually a different other computer, also unplugged.  When I got the new PC, I planned on moving things around between desks).

Tomorrow, I plan to try to go downstairs from my flat, which I haven't done since my wife dragged me up the stairs on Sunday evening. I am recovering, but right now, bending over to ground level to do the cables etc., is simply out of the queston.

Posted on: 12:44 am on July 22, 2005
Storyman Ouch!

Hope you have a speedy recovery.

Posted on: 3:50 am on July 22, 2005
Brad Storyman,

There seems to be some misunderstanding.  I did not originally presented this problem directly to Sunil, but rather to the forum.  I too would love to see version 5 and I would not expect that my problem would take priority over that project.

Had Sunil not indicated in his last posting – before your first one - that he had the exact script that I needed “readily” available on his "disabled" computer and had he not indicated a willingness to share it; I would not have pursued the issue.  

I did not perceive that what I was asking for might require a tutorial-type of response.  But having limited experience with code and scripts, I admit that I may be naive.  I have, however, read everything I could find on the subject in the forum and Activ Ebook Help, but have not been able to piece it together.

As I have restated several times in this thread, YES, I want to create a form with one-line text boxes.  And I want the text entered in the text boxes to persist even after the ebook is closed and then reopened.  And I ALSO want the user to be able to update the entered text during an active session and/or after they close and then reopen the ebook.

In the meantime, I will inquire with the author of the thread I referenced and seek out tutorials to learn more about the subject.


Posted on: 9:23 pm on July 22, 2005
Storyman Brad,

Hopefully, Sunil will be able to get to his computer before long and provide you with the coding he mentioned.

Is it important for you to use Activ's script? Would javascript be okay? There is a lot of information available on how to use javascript to write/read a text file.

What you're doing sounds pretty straight forward and even if you didn't want to deal with an array you could use a different text file for each text box.

I'm suggesting javascript (which is very Activ friendly) because there is a lot of tutorials and forums available that will reduce the learning curve to a small bump. The javascript information you want to look for is: text boxes; text files (read & write), variables. When doing a search on Google place "tutorial" as the first item. (Google gives the first word a higher weight in searches.)

If you still find that you are having difficulty I'll put together a tutorial for you myself. It will take a week before I can get to it (I'm swapping out the main hard drive on the computer used for this.)

Please let me know if you think javascript will work for you.

Posted on: 10:51 pm on July 22, 2005
Brad Storyman,

No, I am not tied to using an Activ script, but I have to admit that I am quite curious as to what Sunil has in mind for me.  In addition, I would like to, at least, have the option to take advantage of the Activ scripts that are available.

Thank you for your insights on JavaScript.  I'll look into it.  I appreciate your offer to put together a tutorial, but that will not be necessary.  I am sure that I'll be able to find what I need on the Internet, since there is such an abundance of information on the subject, as you mentioned.

You asked if I thought JavaScript would work for me.  Well, at this point I don't know.  But it sounds like it might since it is very Activ friendly, as you talked about.

I just want to figure out a way, by whatever means, to do what I’ve described without the user having to deal with file saving and hunting.  I want that function, if necessary, to be transparent to the user.  In other words, I want to arrange things so that the only thing the user has to do is click a button entitled, “Save/Update,” and the information in the text boxes will persist.


Posted on: 4:44 pm on July 23, 2005
Storyman Brad,

Sounds like a plan.

The reason I suggested javascript is that you'll be able to accomplish what you want now instead of waiting for Sunil to heal. As far as the end user is concerned there is no difference in appearance or function.

I wasn't clear, but the tutorial I'd create would be using Activ Script to demonstrate the coding.

Posted on: 5:16 pm on July 23, 2005
Brad Storyman,

Either way I go there will be a learning curve.  But not knowing what Sunil has in mind puts me at a bit of a disadvantage in terms of making a decision as to where to concentrate my efforts.  But I don’t mind waiting, particularly under the circumstances.  I will begin the process of learning about JavaScript in the meantime, however.

I can’t agree to allow you to create a tutorial just for me.  But if you have something canned that you’d be willing to share, it would be appreciated.


(Edited by Brad at 3:44 pm on July 23, 2005)

(Edited by Brad at 6:43 pm on July 23, 2005)

Posted on: 6:36 pm on July 23, 2005
EBookCompiler Here's the example


Posted on: 2:16 am on August 24, 2005
Brad Thank you Sunil.

The example looks great!

Looks like a lot of work.  Hope that it didn’t eat up too much of your time.  Should benefit many, however.

I’ll try it out right away.

Many thanks,


Posted on: 6:47 pm on August 24, 2005
EBookCompiler Actually it was pretty easy, I knocked it off in about an hour including making the web page.  It would have taken less, except a typing mistake in the script wasted a lot of time.

Apart from helping you, I'm glad I did, as I get similar questions on these lines fairly often.

There's also another (unrelated) new article on ebookcode, which I added at the same time.

Posted on: 9:25 pm on August 24, 2005

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums

Copyright © 2000-2015, 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.

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