Gidday all,

I have created a form with a group of checkboxes (see code below)

I wish to use cgi.pm to process it. 

When I use 

        my @deployBranch = $cgi->{form}{'deployBranch'};

       my $list;

        if ( @deployBranch ) {
          $list = join ', ', @deployBranch;
        } else {
          $list = 'None';
        }

        
        $debug->printlog("List: $list");

My debug log returns this 

List: ARRAY(0x3bf048)

Im expecting to see the value attributes of the checkbox group being
returned as a comma delimited list, What am I doing wrong?

Regards
Colin

<form action="wfGlossaryBranchDeploy.cgi" method="post">
<table>
<tr>
<td align="right">bremer:&nbsp;</td>
<td><input type="checkbox" name="deployBranch"
value="/iwmnt/default/main/det/bremer/WORKAREA/internet" /></td>
</tr>
<tr>
<td align="right">brisbane_north:&nbsp;</td>
<td><input type="checkbox" name="deployBranch"
value="/iwmnt/default/main/det/brisbane_north/WORKAREA/internet" /></td>
</tr>
<tr>
<td align="right">gold_coast:&nbsp;</td>
<td><input type="checkbox" name="deployBranch"
value="/iwmnt/default/main/det/gold_coast/WORKAREA/internet" /></td>
</tr>
<tr>
<td align="right">logan:&nbsp;</td>
<td><input type="checkbox" name="deployBranch"
value="/iwmnt/default/main/det/logan/WORKAREA/internet" /></td>
</tr>
<tr>
<td align="right">tafeqld:&nbsp;</td>
<td><input type="checkbox" name="deployBranch"
value="/iwmnt/default/main/det/tafeqld/WORKAREA/internet" /></td>
</tr>
<tr>
<td align="right">temp_clients:&nbsp;</td>
<td><input type="checkbox" name="deployBranch"
value="/iwmnt/default/main/det/temp_clients/WORKAREA/internet" /></td>
</tr>
<tr>
<td align="right">temp_partners:&nbsp;</td><td><input type="checkbox"
name="deployBranch"
value="/iwmnt/default/main/det/temp_partners/WORKAREA/internet" /></td>
</tr>
</table>
</form>

Colin Johnstone 
Interwoven Teamsite Analyst Programmer 
eGovernment Delivery Team
QLD Department of Employment and Training
Telephone (07) 3244 6281
Fax (07) 3244 6265
Address Southbank Institute of TAFE - Kangaroo Point Campus
Visit: http://www.trainandemploy.qld.gov.au/ 



This E-Mail is intended only for the addressee. Its use is limited to that
intended by the author at the time and it is not to be distributed without the
author's consent. Unless otherwise stated, the State of Queensland accepts no
liability for the contents of this E-Mail except where subsequently confirmed in
writing. The opinions expressed in this E-Mail are those of the author and do
not necessarily represent the views of the State of Queensland. This E-Mail is
confidential and may be subject to a claim of legal privilege.

If you have received this E-Mail in error, please notify the author and delete 
this message immediately.

Reply via email to