selecting all checkboxes

I have a form where the user enters all the data and clicks submit. The parameters enetered are then passed to web page 2 where the data is displayed. The fields are text boxes except for 1 question which uses checkboxes. There are 1 to 10 checkboxes and also a checkbox for all.

How do i select all so that all checkboxes (1 to 10) are selected.

here's the code from the first page

the code on the 2nd page to display the data is
$checkid= param("checkid");
print "ID = $checkid<br>";

how can i select all checkbox and all the checkboxes (numbered 1 to 10) are selected.
what do i need to do so that the checkboxes checked on page 1 are displayed on page 2.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This is a HTML question rather than Perl.

If you want all checkboxes checked, then do:

print <<EOF;
<input type="checkbox" name="IDr1" value="1" checked>1
<input type="checkbox" name="IDr2" value="2" checked>2


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
> how can i select all checkbox and all the checkboxes
do you mean "select in the browser" when seeing the page?
  then you have to use something like JavaScript

or do you mean write the checkboxes checked back from your CGI?
  see Tintin's suggestion

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Scripting Languages

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.