?
Solved

How to:  Write textarea to file ?

Posted on 2008-06-10
2
Medium Priority
?
244 Views
Last Modified: 2013-12-25
I have a page that is basically one form.
Each horizontal section contains a checkbox and a textarea.
I have a .py script creating the hmtl based on the assignments for the user. So it is different for each user.
And each time the user runs the .py script the page could change based on the assignments for the user.
Each assignment has a checkbox and a textarea.  
If the user checks the checkbox I want the name of that input saved.  And below each textarea is a submit button.  
I want to write to file the name of the check boxes selected, and when the submit button on any of the textareas is pressed to write all of the textareas to a file at  /home/public_html.

My guess to approaching this would be to have a javascript parse every text area then send those to a .cgi

I also thought I would point out my os is Red Hat and I'm using Mozilla/Firefox.
0
Comment
Question by:pha1anx
[X]
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
2 Comments
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 750 total points
ID: 21759113
Why?

Post the form and write the file using pythonI/O

http://www.penzilla.net/tutorials/python/fileio/
0
 

Author Comment

by:pha1anx
ID: 21762949
Its a studio tool where people can save notes for their assignments which are parsed from another application that is used by production.
The issue was the page is dynamic and I didn't know how to get the form values when I didn't know what the names were when the page is created.  Which is why I was trying to use javascript.
I originally was using a post method and using python to write to the file.  I came up with a way to to give each form element a unique name, and the post method is working.  Simple yet complicated.
Thanks for your help!
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

801 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