I have a script that selects 3 columns (Day, Date, and Number) from a database. Each row is displayed in a 4 column table. The first column has checkboxes so the a user can select which day they would like to sign up. For each selection I would like to take the information and write it to a file that can be used by a second script that will update the table with the remote_user() name. The user must also identify themselve as Father or Mother which I would also like to write to the file.
To see how it looks go to.
www.mnlightning90.org/cgi-bin/Volunteer.pl
print $query->start_form('POST','./Signup.pl');
print $query->radio_group( -name =>'Parent',
-value =>["Father", "Mother"],
-default=>["NO DEFAULT"],
-linebreak=>'true',
-columnheader=>'Parent');
print "<TABLE BORDER='1' CELLSPACING='1' CELLPADDING='7'>";
print "<TR>";
print "<TH WIDTH='10%' VALIGN='TOP' BGCOLOR='#9933FF'>";
print "<FONT SIZE='2' COLOR='#FFFFFF'>Volunteer</TH>";
print "<TH WIDTH='10%' VALIGN='TOP' BGCOLOR='#9933FF' align='center'>"
+;
print "<FONT SIZE='2' COLOR='#FFFFFF'>Day</TH>";
print "<TH WIDTH='10%' VALIGN='TOP' BGCOLOR='#9933FF' align='center'>"
+;
print "<FONT SIZE='2' COLOR='#FFFFFF'>Date</TH>";
print "<TH WIDTH='10%' VALIGN='TOP' BGCOLOR='#9933FF' align='center'>"
+;
print "<FONT SIZE='2' COLOR='#FFFFFF'>Number</TH>";
print "</TR>";
while (my @val = $sth->fetchrow_array ())
{
print "<TR>";
print "<TD WIDTH='10%' VALIGN='TOP' ALIGN='center'BGCOLOR='#99FF99'
+COLOR='#FFFFFF'>";
print $query->checkbox_group(-name=>'choice',
-values=>'');</TD>;
#print "<A HREF=./Signup.pl?$val[2]&$val[3]></TD>";
print "<TD WIDTH='10%' VALIGN='TOP' BGCOLOR='#99FF99' align='center'
+>";
print "<FONT SIZE='2' COLOR='#9933FF'>$val[0]</TD>";
print "<TD WIDTH='10%' VALIGN='TOP' BGCOLOR='#99FF99' align='center'
+>";
print "<FONT SIZE='2' COLOR='#9933FF'>$val[1]</TD>";
print "<TD WIDTH='10%' VALIGN='TOP' BGCOLOR='#99FF99' align='center'
+>";
print "<FONT SIZE='2' COLOR='#9933FF'>$val[2]</TD>";
print "</TR>";
}
print "</TABLE>";
print "<p>";
print $query->submit(-name=>'rows',
-value=>'Submit');
print " ";
print $query->reset;
print $query->end_form();
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.