On 6/26/03 at 10:14 PM, [EMAIL PROTECTED] (Bob X) wrote:
> How would I go about saving the textarea of an HTML page to a text
file?
>
use CGI;
my $q = new CGI;
my $record = $q-param('text_field');
open(OUTFILE, ">output.txt") or die "Can't open output.txt: $!";
print OUTFILE $record;
send donations to TPF:
http://donate.yetanother.org/
read:
perldoc perlintro
perldoc CGI
perldoc perlopentut
Regards,
Andrew
--
This post is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Any code
contained herein is likely UNTESTED and may cause your system
to explode upon execution. Furthermore, please be advised that
I am really just a Perl ninny, and you probably should not be
taking my advice in the first place.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]