Storing a form as it is??

Posted on 2003-02-28
Medium Priority
Last Modified: 2010-04-09
I have a question that may sound absurd.
I have created a form using Microsoft Frontapage and added a couple of text boxes. Now i dont have any webserver setup , im working just on plain html. Now when i open the form in the browser and make some changes in the form, and hit submit i want to save the complete html (the page totally, it has a lot of static data popping up from some other program) along with the changes that i have made in the text boxes. Is it possible, if so what should be the code in the part of submit button.
Here is the example

<form method="POST" action="--WEBBOT-SELF--">
  <!--webbot bot="SaveResults" u-file="C:\Documents and Settings\abc\Desktop\_private\form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" --><p>&nbsp;</p>
  <p><input type="text" name="T1" size="20" value="shanta"></p>
  <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>

Now say i have changed the value in T1 text box and i want to save it along with the page how to do that.
Can u help me out please
Question by:sktripuraneni
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 8046605
Cant understand ur question, if u mean u wanna save the page contents, then u can take a hiddent field like this within the form;
And then on the submit of form call:
<input type="submit" value="Submit" name="B1" onclick="document.all('HD1').value=document.body.innerHTML;">

If this is not wat u want, plz clearify ur question...
Take Care

Expert Comment

ID: 8050511
Hard to answer FrontPage specific questions, since most web developers avoid it like the plague. :-(

You'd need to save your data in a cookie, at the least, in a database might be a better option - but using frontpage just limits your options, really - and keeps you from learning REAL programming.

Expert Comment

ID: 8050830
You are not in marketing are you?

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Expert Comment

ID: 8051016
First to get Frontpage to work  on your server, you have to make sure that the Frontpage-Extensions are installed (check your hosting company).

If I remember correct you have to edit your form-properties in how it should manage the values submitted from your form. The most easy way is to let it save the values into a text-file.

Remeber to "publish" your form with Frontpage (not with a external ftp-client). That process makes the final modifications to your form-action so that it will work on the webserver.

Author Comment

ID: 8053781
Well it has no specifics related to Frontpage, I have just created a form using the frontpage and pasted the code. As i have already told u i have no web server setup.
My question is simple.
I use an embedded sql and embedded html program using C. I create reports using the C program, and i send the data to the html browser(explorer) as an html file across the network. Now the user who gets this file opens it prints it. However, the new problem is that the user also wants to make some changes to the file that I have sent, so I have added some textboxes and textareas. Now he wants to save the file that i have sent along with the changes(or text additions in the textarea/textbox) he had made in his local drive and will also send it to some one else .
When, he is opening the form and making changes, and thus finally saving it using the File->save As . the next time he is opening it the changes he made to the textarea are gone, in other words they are not saved. What I want to do is that I want to save all the text he entered along with the HTML file on his computer when he hits the submit button. Im not sure how to do this.
I think my question is clear.

Now according to Mamda where should i put this code, well for sure i think i have to delete that WEB-BOT stuff from the source as i created using Frontpage.

Expert Comment

ID: 8062891
file->saveAs will save the page *as it was loaded into the browser* so any new or dynamic input on the page will be lost.

Accepted Solution

Mamda earned 300 total points
ID: 8062942
This is not the solution to saving the data, u shud either save the data on server by calling some serverside cgi/asp/jsp or try using cookies on client, if they work...
Take Care

Author Comment

ID: 8067010
thank you,
That made myself clear. I would check to see if i can make any changes in my program.
Thanks for ur comments

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question