OK, I've got a form where I'm passing an array via a hidden form field. The problem is that (after submission) I'm getting a leading space at the beginning of each 'record' after the first. In other words, the first 'record' is being passed as it should be, but each other record is being prepended with a space.
That leading space is causing me headaches. when trying to do a foreach on the array, after submitting the form. How do I either 1) Ditch the prepended space, or 2) prevent the space from ever appearing? The site is http://staff.washington.edu/guru/james.cgi #This is the hidden field print "<input type='hidden' name='drawHidden' value='@Draw'>"; #This is the foreach foreach my $item (@Draw){ my @foo = split(/\|/, $item); my $rowColor; if ($counter == 7){ $rowColor = "#c0c0c0"; }else{ $rowColor = "#ffffff"; } $valueName = $foo[1]; print "<tr bgcolor='$rowColor'>\n"; print "\t<td>$counter</td>\n"; print qq{\t<td><a href="$foo[3]" target="_new">$valueName</a></td>\n}; print "\t<td><input type='checkbox' name='PlayedCheckbox' value='$counter'></td>\n"; print "\t<td><input type='checkbox' name='discardCardsCheckbox' value=''></td>\n"; print "</tr>\n"; $counter++; } _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]