I have a form which passes variables to a cgi script which then prints out the values on the next page.
How can i get the cgi script to print to a set format.
at the moment, it just lists the form parameters in a big list, but i want them to be spaced nicely on the page.
this is my code so far...
print "<html><head><title>Form output</title></head><body bgcolor=#000099>";
print "<h2>results from the form post</h2>\n";
foreach $key (keys(%FORM)) {
print "$FORM{$key}<br>";
}
print "</body></html>";
I think the main problem is me using the 'foreach' command, but i don't know how else to do it.
any ideas??
How can i get the cgi script to print to a set format.
at the moment, it just lists the form parameters in a big list, but i want them to be spaced nicely on the page.
this is my code so far...
print "<html><head><title>Form output</title></head><body bgcolor=#000099>";
print "<h2>results from the form post</h2>\n";
foreach $key (keys(%FORM)) {
print "$FORM{$key}<br>";
}
print "</body></html>";
I think the main problem is me using the 'foreach' command, but i don't know how else to do it.
any ideas??