Problem with Checkbox

A

Anonymous

Guest
hello...

can anyone help me?

problem :

i have to display a result per page , i have done that, but the problem is, i have to keep the checkbox value when i click next.
for example i click one checkbox in page 1 then i click another checkbox in page 2 or 3 then i have to click submit button.

so how to submit the value of checkbox from the all page that i click.

thanx..

zai ;)
 
save all the checkboxes in sessions, so you have it in the end
 
i'm sorry...

i don't how to save all checkbox in sessions.. :(

zai
 
page one. first page of checkboxes
Code:
<?php
session_start();
...
?>
..
<form action="somepage.php" method='post'>
..
<input type='checkbox' name='chkbox[]' value='<?=$value?>'>
..

somepage.php
Code:
<?php
session_start();
for ($i=0; $i<count($_POST['chkbox']); $i++)
   $_SESSION['chkbox'][] = $_POST['chkbox'][$i];
}

...
// now redirect the user to the page showing new set of checkboxes..
 
Back
Top