bluedragon2
IS-IT--Management
I a perl script with a simple html form. When it is executed, it works properly, but the results are not printed until it runs through the entire process. I would like it to print as it processes it that is possible. Here is part of the script:
The file goes on and has several lines of output, but will not print anything until it has completed.
Thanke
[Blue]Blue[/Blue] [Dragon]
If I wasn't Blue, I would just be a Dragon...
Code:
[tt]
print header;
print "<FONT color=#006600><h1>BBS User Account Management</h1></FONT>\n";
print start_html('BBS Account Management'),
start_form,
"User Name: ",textfield(-name=>'Uname',-size=>15),
p,
radio_group(-name=>'ad',-values=>['Add Account','Delete Account','Change Password'],-default=>'Add Account'),
p,
"BBS Hostname: ",popup_menu(-name=>'Host',-values=>[@bbspop],-default=>'ALL'),
p,
"New Password: ",textfield(-name=>'Npass',-size=>15)," (Minimum 8 characters containing 1 upper, 1 lower, 1 number,
and 1 special)",
p,
"Execute Password: ",password_field(-name=>'Epass',-size=>8)," ",submit(-name=>'Execute'),
end_form,
hr;
if (param()) {
$Epass = param(Epass);
$Uname = param(Uname);
$ad = param(ad);
$Host = param(Host);
$Npass = param(Npass);
if ($Epass ne "XXX") {
print "<FONT color=red><TT><B>Invalid Execute Password</B></TT></FONT>\n";
exit;
} else {
print "<TT><B>Processing</B></TT>\n";
print "<CENTER></CENTER>\n";
}
[/tt]
The file goes on and has several lines of output, but will not print anything until it has completed.
Thanke
[Blue]Blue[/Blue] [Dragon]
If I wasn't Blue, I would just be a Dragon...