You are here: Re: Way to save form data locally w/o server? « HTML « IT news, forums, messages
Re: Way to save form data locally w/o server?

Posted by Jonathan N. Little on 08/19/07 00:07

greg_e@mail.com wrote:
> On Aug 17, 7:44 pm, mbstevens <NOXwebmast...@xmbstevensx.com> wrote:
>> gre...@mail.com wrote:
>>> Is there a way to create a form in a local html file where the
>>> contents of the form are written to a local file when a 'save' button
>>> is selected?
>>> It would be nice if it was as easy as changing "somesite.com" to
>>> "file:///C:/whatever" and "post" to "save"... in the following form:
>>> <form action = "somesite.com" method="post">
>>> <p> <textarea name="Text" rows="20" cols="80"> </textarea>
>>> <input value="Send" type="submit"><input type="reset"> </p>
>>> </form>
>>> I would like to do this without using javascript, and without having
>>> to set up a local server to serve the form.
>>> Any help appreciated.
>> It is not really that hard to set up a local server with CGI or LAMP, if
>> you feel you really *must* use a local html file.
>>
>> On the other hand, Python comes with Tk and has hooks to other
>> easy to use GUI packages, which might make more sense to use locally.
>> Perl and Ruby have similar hooks. Is there anything really magic
>> about an html file for your uses?
>
> I basically just need a local page I can load in Firefox that will
> make Firefox act like notepad, where you can save a text area to a
> file, but I don't even need to be able to select the filename, like
> you can do with notepad - the filename can be hardcoded.
>

No you cannot. HTML forms post to server-side scripts, so you *need* the
server. If you don't want the server then your must use the OS, put a
shortcut to a text file and be done with it...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация