if ($action eq 'None')
{
print "Content-type: text/plain\n\n";
$form01 = new CGI;
print @header_html;
print <<EOFHTML;
<form action="$script_dir"" method="post">
action: $action
<input type="submit" name="action" value="Start">
</form>
action: $action
EOFHTML
print @footer_html;
$action = $form01->param('action');
print $action;
if ($action eq 'Start')
{
print @header_html;
print <<EOFHTML;
action: $action
EOFHTML
print @footer_html;
}
} else {
print "<br>--------------------<br>";
print "action: $action";
}
the script prints the nested IF statement on the same HTML page after the user gets the data. HELP!
{
print "Content-type: text/plain\n\n";
$form01 = new CGI;
print @header_html;
print <<EOFHTML;
<form action="$script_dir"" method="post">
action: $action
<input type="submit" name="action" value="Start">
</form>
action: $action
EOFHTML
print @footer_html;
$action = $form01->param('action');
print $action;
if ($action eq 'Start')
{
print @header_html;
print <<EOFHTML;
action: $action
EOFHTML
print @footer_html;
}
} else {
print "<br>--------------------<br>";
print "action: $action";
}
the script prints the nested IF statement on the same HTML page after the user gets the data. HELP!