Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by thatguy (Parson)
on Oct 11, 2001 at 16:45 UTC ( #118201=note: print w/ replies, xml ) Need Help??


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

my tests seem to work ok, but I am unclear on how you are calling this from another script. do you mean as the action or some other means?

Update: seems to work when I added this after line 7 in the first script.

print $query->hidden('TblMenu');

is this what you were wanting?


Comment on Re: Re: Re: passing an array to a checkbox_group
Select or Download Code
Re: Re: Re: Re: passing an array to a checkbox_group
by amulcahy (Acolyte) on Oct 11, 2001 at 17:47 UTC
    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
Re: Re: Re: Re: passing an array to a checkbox_group
by amulcahy (Acolyte) on Oct 11, 2001 at 18:55 UTC
    that did it - thanks for your help, it was driving me batty.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2015-07-01 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (22 votes), past polls