Home: Perl Programming Help: Beginner:
Write/Post



lukas
Deleted

Mar 8, 2001, 5:13 PM


Views: 794
Write/Post

Im trying to pull information from a form field, store it to a text file, and then write that info into a cell on a seperate html page. any ideas??? Thanx alot!!!!!!!




kencl
User

Mar 9, 2001, 4:07 PM


Views: 787
Re: Write/Post


Code
use CGI; 

$q = new CGI;

$UserInput = $q ->('formfieldname');
open(FH ">textfile.txt");
print FH $UserInput;
close(FH);

print "Content-Type: text/html\n\n";
print "<table><tr><td>$UserInput</td></tr></table>";


>> If you can't control it, improve it, correlate it or disseminate it with PERL, it doesn't exist!