i have made the necesary changes and i now get no sytax errors when using this script. however all i want to do is take all the selected options from a scrolling box and then store them in the array and just print them to screen but nothings happening can you see why??
#!/usr/local/bin/perl -w use CGI; use DBI; my @teamOption= param ("teamOption"); print "Content-type: text/html\n\n"; print "<html>"; print "<body TEXT='#000000' BGCOLOR='#FFFFFF' LINK='#0000EE' VLINK='#5 +51A8B'ALINK='#FF0000'>\n"; # Print out a table of teams chosen print "<table border=1> \n"; print "<tr> \n"; print "<th> List of teams chosen </th> \n"; print "<tr> \n"; for $team (@teamOption){ # Print row print "<tr> \n"; print "<td> $team </td> \n"; print "</tr> \n"; } print "</table>"; print "</body>"; print "</html>";

In reply to cgi problem returns by Anonymous Monk

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.