Creating a means to edit text input formatting
Posted: Mon Nov 22, 2010 11:33 pm
Hello,
I had something that I would like to do for work purposes. I don't have much programming experience, only a little AS3 and PHP for simple things. I was hoping someone can help me with this idea. I want to take a file that contains a print out of questions and answers and convert it easily, replacing the questions with more concise summaries of what the question was. For example, it would work like this:
Q:"What did you do yesterday for lunch?"
A:"I went to the deli down by the river"
after conversion:
Q:"LUNCH"
A:"I went to the deli down by the river"
The questions will always be converted to the shorter versions while each document will always have different answers. We edit the files by hand now which is tedious and not entirely necessary. I would like to make a website with the functionality for someone to paste the original document into an "input field" and then hit a button which would display the information in the "output field". Preferably this would support specific font setting and bold for the questions/answers so that the employee can just copy paste the output as needed. I have used PHP to make a function that adds lines to an XML file based upon directory contents, and maintains a specific file which AS3 reads. I figure this would be similar.
Would it be something like HTML input --> write to XML --> run PHP script -->re-write XML ---> format for Output field?
I don't really know how to do this, and I haven't created forms in HTML, but I do have Dreamweaver as part of the CS5 package. Can anyone advise me on how to make this work? Is it as simple as it sounds?
Thanks!
Alex
I had something that I would like to do for work purposes. I don't have much programming experience, only a little AS3 and PHP for simple things. I was hoping someone can help me with this idea. I want to take a file that contains a print out of questions and answers and convert it easily, replacing the questions with more concise summaries of what the question was. For example, it would work like this:
Q:"What did you do yesterday for lunch?"
A:"I went to the deli down by the river"
after conversion:
Q:"LUNCH"
A:"I went to the deli down by the river"
The questions will always be converted to the shorter versions while each document will always have different answers. We edit the files by hand now which is tedious and not entirely necessary. I would like to make a website with the functionality for someone to paste the original document into an "input field" and then hit a button which would display the information in the "output field". Preferably this would support specific font setting and bold for the questions/answers so that the employee can just copy paste the output as needed. I have used PHP to make a function that adds lines to an XML file based upon directory contents, and maintains a specific file which AS3 reads. I figure this would be similar.
Would it be something like HTML input --> write to XML --> run PHP script -->re-write XML ---> format for Output field?
I don't really know how to do this, and I haven't created forms in HTML, but I do have Dreamweaver as part of the CS5 package. Can anyone advise me on how to make this work? Is it as simple as it sounds?
Thanks!
Alex