Link to home
Create AccountLog in
Avatar of plennon
plennon

asked on

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
print "<INPUT TYPE=CHECKBOX NAME=IDr1 VALUE=1>1";
.......
print "<INPUT TYPE=CHECKBOX NAME=IDr10 VALUE=10>10";

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.
and
what do i need to do so that the checkboxes checked on page 1 are displayed on page 2.





ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.