Monks,
I'm trying to run a form within the results of another form script. The first script is basically a review for the user to see if the data looks correct before adding it to a MySQL db. Right now nothing is showing up in the form portion (everything below the table part) of this script and I'm not getting any errors (displayed or in the weblogs). Does anybody see why this part of my code would not be displaying?
#!/usr/bin/perl -w
# Display all erors to screen
$|++; # autoflush buffers;
use CGI::Carp 'fatalsToBrowser';
use strict;
use DBI;
use CGI qw/:standard/;
my $infile = upload ('file') or die "File was not uploaded correctly\n
+";
my ($ip,$port,@services,@banners,@names,@ips,@ports);
my %data;
print header,
start_html ("-title" => "Review Page");
----------- perl stuff ---------------
print "<table>";
print "<tr><br><br>";
print "<td><b><u>IPS</u> - </b>@ips<br><br>";
print "</tr>";
print "<tr>";
print "<td><b><u>Cnames</u> - </b>@names<br><br>";
print "</tr>";
print "<tr>";
print "<td><b><u>Services</u> - </b>@services<br><br>";
print "</tr>";
print "<tr>";
print "<td><b><u>Banners</u> - </b>@banners<br><br><br>";
print "</tr>";
print "</table>";
start_form( { -action => "action_dbi.cgi",
-enctype => "application/x-www-form-urlencoded",
-method => "post" } ),
h1( strong( "Does this format look correct?" ) ),
checkbox_group(-name=>'question',
-values=>['yes','no'],
-default=>['yes'],
p( " " ),
p( input( { -type => "submit",
-value => "submit"} ),
), #end p
end_form,
end_html;
Thanks,
Dru
Another satisfied monk.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.