Hello,
Here's what I got:
@output = <DAT>;
close DAT;
print "<form action=\"$ENV{'SCRIPT_NAME'}\" method=POST><TEXTAREA value=\"output\" ROWS=20 COLS=60 wrap=\"OFF\">@output</TEXTAREA></form>";
The problem is that the output inside the textarea (starting from the second line) will have a space character at front of each line. In my database I don't have any spaces at front of each line.
Could it be a <TEXTAREA> tag bug? - I don't know.
I need to get rid off these spaces, because the text from textarea will be saved back to the database. Anybody, please help!
Thank you.
Pasha
Here's what I got:
Code:
open (DAT, "$datfile"); @output = <DAT>;
close DAT;
print "<form action=\"$ENV{'SCRIPT_NAME'}\" method=POST><TEXTAREA value=\"output\" ROWS=20 COLS=60 wrap=\"OFF\">@output</TEXTAREA></form>";
The problem is that the output inside the textarea (starting from the second line) will have a space character at front of each line. In my database I don't have any spaces at front of each line.
Could it be a <TEXTAREA> tag bug? - I don't know.
I need to get rid off these spaces, because the text from textarea will be saved back to the database. Anybody, please help!
Thank you.
Pasha