hide labels

i have 2 scripts......
the first creates a grid of checkboxes....and passes the vaules on to a second script for processing

in my code i have this line

print $q->checkbox_group(-name=>"g".$i.$j,
values=>["n".$i.$j], -label=>"click");

which prints n11 n12 n13 etc.....beside all the checkboxes
how can i make it so that it doesnt print the n11 n12 etc but actually does send the values on to be processed?

i tried all these


-lables=>{"n".$i.$j => 'click'}
print $q->checkbox_group(-name=>"g".$i.$j, -values=>["n".$i.$j], -lables=>"click");    

#print $q->checkbox(-name=>"g".$i.$j,
print $q->checkbox_group(-name=>"g".$i.$j,
                              values=>["n".$i.$j], -lables=>{"n".$i.$j => 'click
'});
     #                             -values=>["n".$i.$j], -lables=>"click");
                                # -values=>["n".$i.$j], -label=>{"click"});
           #works                      -values=>["n".$i.$j], -label=>{"n".$i.$j
=> 'click'});
#                                   -values=>[""], -label=>"click");    


but none worked.....
 
 

paulwhelanAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ozoConnect With a Mentor Commented:
print $q->checkbox(-name=>"g$i$j", -value=>"n$i$j", -label=>"click");
0
 
MindoCommented:
I quite don't understand you what you mean. Please, restate the problem with the full source code.
0
 
paulwhelanAuthor Commented:
the source code is to big to post

what i need to do is replace this line
print $q->checkbox_group(-name=>"g".$i.$j,
values=>["n".$i.$j], -label=>"click");


with a line that will send the values to the next script but not print the n$i$j values to screen

thanks
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
MindoCommented:
Then why send these values to the next script? Process them in the first file.
0
 
paulwhelanAuthor Commented:
its the way i have it setup and it works so id rather not change it.....

id just like to know how to hide the n$i$j values.....

thanks
0
 
alexa_rCommented:
Well, I don't know if I understood you, but if I do, the answer is simple: you need to manually format the HTML code, so the values would not be printed:

for ($i = 0; $i<10;$i++) {
  for ($j =0; $j<10;$j++) {
    print <<END;
<input name="g$i$j" type="checkbox" value="n$i$j">\n"
END
}
}

I hope it helps.. Of course, you'll need to modify it a littlebit to suits your code..

Regards, Alex.
0
 
paulwhelanAuthor Commented:
accpeting ozos answers as its what i needed
thanks to everyone though
0
 
paulwhelanAuthor Commented:
ozo, you're brilliant
0
All Courses

From novice to tech pro — start learning today.