Forum Moderators: open

Message Too Old, No Replies

Populating text box with text file

Populating text box with text file

         

Bandit

4:54 pm on Feb 24, 2004 (gmt 0)

10+ Year Member



Hello. I have a text file on a web server that I write to with a perl script from a form. I want to be able to call that information (from the text file) into a text box so it can be updated. At the moment, I can only update the entire portion of text without the option to edit (or review).

I'm running Unix server WITHOUT CF, ASP and PHP etc. Also, SSI commands do not work from inside a text box. I'm hoping that JavaScript has an answer for me.

I was hoping that somebody here could help.

Thank you.

DrDoc

5:04 pm on Feb 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

I assume you are using Perl for the actual scripting then, right? If so, you can just have Perl write the entire page... Or at least use SSI to generate the textarea as a whole in addition to the text. :)

Bandit

4:53 am on Feb 25, 2004 (gmt 0)

10+ Year Member



Thanks for that...

I'm not entirely sure how to implement the PERL code so that can wait!

What I have done, on your advice Doc, is bulid a html doc that calls three test files that bulid the page. One file calls all the text above the <TEXT AREA> command, one in between that populates the text box and another below the </TEXT AREA> code with the rest of the page.

It's messy but it works. I'll think of something more functional in the future. Maybe I should just learn some of that PHP/MySQL stuff!

Thanks again for your help.