Please advise why this wont print the variable $webpage1 with the value of "first"??
It doesnt print the value on my page or in the text file. The text file doesnt have any data in it. why doesnt this work??
use CGI qw(:all); print header; $webpage1 = param("first"); print "<html><head> <title>Web Pages for local data.</title> </head><body>"; $filepath = "C:/inetpub/wwwroot/fil.txt"; $newtext = "$webpage1\n"; open (FILE, ">>$filepath") || "Did not write:$!\n"; print FILE $newtext; close (FILE); print "<p>Data submitted.<br><b>$newtext</b></p>"; print "</body></html>";
Edited: ~Thu Aug 1 13:58:44 2002 (GMT) by footpad: Added HTML formatting tags, per Consideration.
In reply to Wont write to text file. by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |