in reply to save form
#!/agl/tools/perl/bin/perl use strict; my $file = 'home/testuser3/choicebug.txt'; my $webparams = GetParams(); open(FILE, ">>$file")||die "Can't open $file"; print FILE "$webparams\n"; close (FILE); exit; sub GetParams { my $webparams; if ($ENV{'QUERY_STRING'} ne '') { $webparams = "$ENV{'QUERY_STRING'}"; } else { read(STDIN, $webparams, $ENV{'CONTENT_LENGTH'}); } return $webparams; }
|
|---|