Hello, I'm alittle new to perl, and im writtting a Quiz script that will allow for 5 multiple choice questions and more then one anser to each question. The problem im having (and i have looked for the answer, just probably not in the right place) is that i can not refresh an html page. here's the script thats pertanant:
if ($action eq ""
{
print @header_html;
print "Content-type: text/html\n\n";
print "<form method=post action=quiz.cgi>";
print "Name:";
print "<input type=text name=username>";
print "Email:";
print "<input type=text name=email>";
print "<input type=hidden name=action value=Start>";
print "<input type=submit value=Send>";
print "</form>";
print "Action1: $action";
print @footer_html;
&parse ();
print "Action 2: $action";
}
if ($action eq "Start"
{
print "\n\n";
print @header_html;
print "$action";
print "$user_name";
print @footer_html;
} else { }
when the script returns from the sub &parse it prints the next bit of code right below the first bit.
I know this is probably a real simple issue, if you could just direct me to someplace that has the answer im looking for i would greatly appreshiate it!
thanks in advanced!
if ($action eq ""
print @header_html;
print "Content-type: text/html\n\n";
print "<form method=post action=quiz.cgi>";
print "Name:";
print "<input type=text name=username>";
print "Email:";
print "<input type=text name=email>";
print "<input type=hidden name=action value=Start>";
print "<input type=submit value=Send>";
print "</form>";
print "Action1: $action";
print @footer_html;
&parse ();
print "Action 2: $action";
}
if ($action eq "Start"
print "\n\n";
print @header_html;
print "$action";
print "$user_name";
print @footer_html;
} else { }
when the script returns from the sub &parse it prints the next bit of code right below the first bit.
I know this is probably a real simple issue, if you could just direct me to someplace that has the answer im looking for i would greatly appreshiate it!
thanks in advanced!