Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Re: Re: Re: passing an array to a checkbox_group

by amulcahy (Acolyte)
on Oct 11, 2001 at 17:47 UTC ( #118212=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Re: passing an array to a checkbox_group
in thread passing an array to a checkbox_group

OK - 'main' contains the form which calls 'second'

main:

use CGI; $query = new CGI; print $query->start_multipart_form("POST","second"); print $query->checkbox_group(-name=>'FieldNames', -value=>[ @array ]); $query->param( -name=>'Tbl1', -value=>'tabname'; print $query->submit('doWhat','Print Fields'); print $query->end_form;
second:
use CGI; $query = new CGI; $SFields = join(", ",$query->param('FieldNames')); $STab = $query->param('Tbl1');
The result is:
$SFields = Date, Forename, Middle, School
$STab = Nothing?????

AM


Comment on Re: Re: Re: Re: passing an array to a checkbox_group
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://118212]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2014-07-23 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (154 votes), past polls