Solved

How to:  Write textarea to file ?

Posted on 2008-06-10
2
243 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 250 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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

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

Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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…

717 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