Jan 8, 2001, 12:25 PM
Post #1 of 1
the script will be called "stat.cgi", heres the code for it:
quick! someone tell me if this will work!
use CGI qw(param);
$gnm=param(gnm); #Grabs form data named "gnm" and sets to $gnm
$gmb=param(gmb); #Grabs form data named "gmb" and sets to $gmb
chomp($gnm); #removes a trailing record separator from a string
chomp($gmb); #removes a trailing record separator from a string
open (the_file, " > $gnm")|| die $!; #Now, Moving on the opening the new file
print the_file "$gmb"; #Prints the string to the file
close(the_file); #close the file
now, i want the code to create a file and input some info, the file name will be
and the info will be
the script will be executed like this:
will what work?
i will chmod the folder to 777 and the stat.cgi to 755!