Sorry, I was trying to avoid copying and pasting so much since I have everything on a UNIX server at school. Here is the checkbox HTML. It is a separate file from the cgi file.

<hr> <b>Pearl Parks and Recreation Class Listings</b> <p> Please use the checkbox(es) to indicate which class/classes you would +like to register for. <p> <table border="1" cellpadding="4"> <tr> <th></th> <th>Title</th> <th>Location</th> <th>Time</th> <th>Start</th> <th>Cost</th> </tr> <tr> <td><input type="checkbox" name="class" value="Pilates"></td> <td>Pilates (13-Adult)</td> <td>Pearlview RECenter</td> <td>9am Sat</td> <td>9/10/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Zumba"></td> <td>Zumba (13-Adult)</td> <td>Pearlview RECenter</td> <td>10am Sat</td> <td>9/10/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Tai Chi I"></td> <td>Tai Chi I (13-Adult)</td> <td>Pearlview RECenter</td> <td>12pm Sat</td> <td>9/10/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Tai Chi II"></td> <td>Tai Chi II (13-Adult)</td> <td>Pearlview RECenter</td> <td>1:30pm Sat</td> <td>9/10/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Hatha Yoga"></td> <td>Hatha Yoga (13-Adult)</td> <td>Pearlview RECenter</td> <td>11:00am Sun</td> <td>9/11/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Yoga for Power"></td> + <td>Yoga for Power (13-Adult)</td> <td>Pearlview RECenter</td> <td>9:30am Sun</td> <td>9/11/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value=5K Team-Beginner"></td +> <td>5K Team-Beginner (13-Adult)</td> <td>Pearlview RECenter</td> <td>8:00am Tue</td> <td>9/13/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Cycle Spin Youth & Fa +mily"></td> <td>Cycle Spin Youth & Family (11-Adult)</td> <td>Pearlview RECenter</td> <td>5pm Tue/Thu</td> <td>9/13/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Low Impact Aerobics"> +</td> <td>Low Impact Aerobics (13-Adult)</td> <td>Pearlview RECenter</td> <td>5pm Wed</td> <td>9/14/2011</td> <td>$100</td> </tr> <tr> <td><input type="checkbox" name="class" value="Weight Training for W +omen"></td> <td>Weight Training for Women (16-Adult)</td> <td>Pearlview RECenter</td> <td>11am Wed</td> <td>9/21/2011</td> <td>$100</td> </tr> </table> <br> <input type="submit" value="Register!"> <input type="reset" value="Clear Form"> </form> </body> </html>

Here is the full cgi program that I've written so far. Note that this is still a work in progress.

#!/opt/csw/bin/perl use CGI qw/:standard/; my $name = param('name'); my $address = param('address'); my $city = param('city'); my $state = param('state'); my $zip = param('zip'); my $phone = param('phone'); my $fax = param('fax'); my $email = param('email'); my $email2 = param('email2'); my $gender = param('gender'); my $invoice = param('invoice'); print header(), start_html('Registration Confirmation'), hr(), h2("Pearl County Parks and Recreation"), h4("Class Registration Confirmation"), hr(), p("Thank you for registering with Pearl County Parks and Recreation.") +, p("Please find your class registration confirmation below."), hr(), p("Name:",$name), p("Address:",$address), p("City:",$city), p("State:",$state), p("ZIP:",$zip), p("Phone:",$phone), p("FAX:",$fax), p("Email:",$email), br(), hr(), hr(), p("You are registered for the following class(es)."), p("As requested, your invoice will be sent to you by $invoice."), br(), my @classes = param('class'); foreach my $class (@classes){ print "$class <br>\n"; } end_html();

In reply to Re^2: Problem printing checkbox response array using CGI.pm by ImaMac
in thread Problem printing checkbox response array using CGI.pm by ImaMac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.