Connecting Tech Pros Worldwide Forums | Help | Site Map

Beginner's Filehandling problem

Newbie
 
Join Date: Oct 2008
Posts: 4
#1: Oct 26 '08
I have a HTML file with a TEXTAREA and a SUBMIT button.

I want to APPEND the text to a textfile, which I can inspect at a later date.

Can anyone help with this?

eWish's Avatar
Moderator
 
Join Date: Jul 2007
Location: Arkansas
Posts: 900
#2: Oct 26 '08

re: Beginner's Filehandling problem


open the file for saving in the append mode. Also, be sure to sanitize or untaint your data before writing it to file. What have you tried?

--Kevin
Newbie
 
Join Date: Oct 2008
Posts: 4
#3: Oct 28 '08

re: Beginner's Filehandling problem


Hi Kevin,

I'm VERY new at this. I'm reasonably adept at VBA programming, but this is completely new to me.

I basically need the code. I understand the concepts.

Here's the URL of the page in question.
http://itmm.dk/inputtest.html

If the user ckicks the SEND button, the text has to be appended to a text file

Hope you can help

Trevor
Icecrack's Avatar
Expert
 
Join Date: Sep 2008
Location: Sydney, Australia
Posts: 173
#4: Oct 28 '08

re: Beginner's Filehandling problem


Quote:

Originally Posted by itmm

Hi Kevin,

I'm VERY new at this. I'm reasonably adept at VBA programming, but this is completely new to me.

I basically need the code. I understand the concepts.

Here's the URL of the page in question.
http://itmm.dk/inputtest.html

If the user ckicks the SEND button, the text has to be appended to a text file

Hope you can help

Trevor


Trevor well i think that if you want that code you should offer money and place it in the jobs Section, put a clear title of perl programmer needed, as people get paid for what you would like them to do.

now you can attempt this your self and we will be glad to help you.
Icecrack's Avatar
Expert
 
Join Date: Sep 2008
Location: Sydney, Australia
Posts: 173
#5: Oct 28 '08

re: Beginner's Filehandling problem


Also Take a look at
http://affy.blogspot.com/p5be/ch01.htm

for a good perl resource.

look up CGI, USING FILES, and form processing.
Newbie
 
Join Date: Oct 2008
Posts: 4
#6: Oct 29 '08

re: Beginner's Filehandling problem


Quote:

Originally Posted by Icecrack

Trevor well i think that if you want that code you should offer money and place it in the jobs Section, put a clear title of perl programmer needed, as people get paid for what you would like them to do.

now you can attempt this your self and we will be glad to help you.

Problem solved. I found some scraps of code and some tips on tutorial pages and was able to patch it all together and it works.

Thanks for your response.

(I admit it's a bit cheeky expecting to get someone to spend their valuable time doing my coding.)
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#7: Oct 29 '08

re: Beginner's Filehandling problem


Quote:

Originally Posted by itmm

Problem solved. I found some scraps of code and some tips on tutorial pages and was able to patch it all together and it works.

Thanks for your response.

(I admit it's a bit cheeky expecting to get someone to spend their valuable time doing my coding.)

I hope you found some secure code to do that.
Newbie
 
Join Date: Oct 2008
Posts: 4
#8: Oct 29 '08

re: Beginner's Filehandling problem


Quote:

Originally Posted by KevinADC

I hope you found some secure code to do that.

I've found http://affy.blogspot.com/p5be/ch00.htm & I'm working my way through it.
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#9: Oct 29 '08

re: Beginner's Filehandling problem


OK, post your code if you get stuck or need some suggestions or further advise.
Reply