Guest_imported
New member
- Jan 1, 1970
- 0
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??
[tt]
use CGI qw
all);
print header;
$webpage1 = param("first"
;
print "
<html>
<head>
<title>Web Pages for local data.</title>
</head>
<body>
";
$filepath = "C:/inetpub/
$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>";
[/tt]
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??
[tt]
use CGI qw
print header;
$webpage1 = param("first"
print "
<html>
<head>
<title>Web Pages for local data.</title>
</head>
<body>
";
$filepath = "C:/inetpub/
$newtext = "$webpage1\n";
open (FILE, ">>$filepath"
print FILE $newtext;
close (FILE);
print "<p>Data submitted.<br>
<b>$newtext</b></p>";
print "</body></html>";
[/tt]