travisperkins
02-10-2006, 09:46 AM
I have created an application, that is a training course with multiple pages. On each page, the user is given some information and asked to enter a reply by typing text into a text box which is then saved to text files in AutoPlay/Docs.
The text boxes are therefore 'Input1', 'Input2', 'Input3', which are on Page 1, Page 2, Page 3 of the application and which save to AutoPlay/Docs/Text1.txt, AutoPlay/Docs/Text2.txt and AutoPlay/Docs/Text1.txt
The user can come back and edit any of their pages at any time.
When they have finished the whole course, I want them to be able to submit their answers online, so I receive them by email. But it seems a bit cumbersome to ask them to open up AutoPlay/Docs, gather and zip up all their text files and then send them in. In fact, I wouldn't get away with it professionally even if I felt comfortable with it.
Preferably, I would like them to be able to just click a Button that I pro-configure to submit the text to an email address. So, when they click 'Submit My Course', all of the text files get gathered up and sent in.
Can this be done?
I would like the flexibility, in a perfect world, to move away from receiving the answers by email to having them submitted directly to a MySQl data base. Otherwise, me and my other teachers have got to open up a seperate text file for each question and read it. I would like to wait until I am a bit more experienced for that; I mention it here in case that influences the method used now. That said, if there are examples of submitting multiple text files to a data base, I would sure like to know.
Any pointers, code snippets or links would be very much appreciated.
The text boxes are therefore 'Input1', 'Input2', 'Input3', which are on Page 1, Page 2, Page 3 of the application and which save to AutoPlay/Docs/Text1.txt, AutoPlay/Docs/Text2.txt and AutoPlay/Docs/Text1.txt
The user can come back and edit any of their pages at any time.
When they have finished the whole course, I want them to be able to submit their answers online, so I receive them by email. But it seems a bit cumbersome to ask them to open up AutoPlay/Docs, gather and zip up all their text files and then send them in. In fact, I wouldn't get away with it professionally even if I felt comfortable with it.
Preferably, I would like them to be able to just click a Button that I pro-configure to submit the text to an email address. So, when they click 'Submit My Course', all of the text files get gathered up and sent in.
Can this be done?
I would like the flexibility, in a perfect world, to move away from receiving the answers by email to having them submitted directly to a MySQl data base. Otherwise, me and my other teachers have got to open up a seperate text file for each question and read it. I would like to wait until I am a bit more experienced for that; I mention it here in case that influences the method used now. That said, if there are examples of submitting multiple text files to a data base, I would sure like to know.
Any pointers, code snippets or links would be very much appreciated.