Who would like to write me a simple PERL script??

Electric Amish

Elite Member
Oct 11, 1999
23,578
1
0
I know... don't everyone come running at once. ;)

All my attempts have failed.

All it needs to do is take POST data from an HTML form and write it to a file. That's it.

Very simple, very easy.....but I can't get it to work. :|

amish
 

Electric Amish

Elite Member
Oct 11, 1999
23,578
1
0
Originally posted by: Jugernot
I could write you a PHP script.... but I'm at work right now.

I know less about PHP than I do about Perl. :(

I could do it in JSP, but my server doesn't support JSP. :(

amish
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
#!/usr/bin/perl

use CGI;
@params = CGI::Param;
open OUT, ">>outputfile.txt"
|| die ('can\'t open output');
foreach $i(@params){
print OUT "$i=", CGI::Param($i). ",";
}
print OUT "\n";
close OUT;
print "Content-Type: text/html\n\n";
print "File saved";