Hey all, I changed what you said to change in the last message, but it didnt work yet, can anyone tell me what else i could do to make this work? i wanna get this to write to the file...
#!/usr/bin/perl
use Strict;
#############################
#
# This Forum copyright Scott Hedstrom
# No unauthorized Use.
#
#############################
#
# Start of Development: June 15, 2000
# End of Development: TBA
#
#Define These Variables
$forumname="foamFORUM" #The name of the forum here
$outputfile="foruminput.txt" #This file is where the script will write to. Use it for an SSI
$sendsite="http://panzone.com/foam/forum.shtml"> #The location you want themto be sent after message submition.
# This creates an instance of the CGI object.
$cgiobject = new CGI;
# This gets the values of forms submitted by the user.
$username=$cgiobject->param("username");
$message=$cgiobject->param("message");
# End of Variable Info
#Opens the Output file for input.
open(outfile, ">$outputfile") | | die;
# End of File copying
#Start of file writting.
print outfile "$message\n\n\n";
close(outfile); #Closes the file.
# Creates the webpage
print "<HTML><HEAD><TITLE>$forumname</TITLE></HEAD>
<BODY>Message Submitted.</BODY></HTML>"
thanks alot guys
foam
www.thefoam.org