I'm a PHP learner. I am pulling rows from a db and displaying them in a very simple HTML table. Each row begins with a checkbox. There are 20 records on each page, and there are 5 pages. Every time I go to the "next page", the values in the $cVarString below are vacated. No page-to-page persistence. If I choose 10 rows on one page and 2 on the next page, $cVarString only contains the most recent 2 values. Why no persistence?
if ( isset ( $_POST [ 'checkbox' ] ) )
{
$cVarString .= implode ( ",", $_POST [ checkbox ] ) ; ;
}
I guess I need to insert the values of $_POST into a table after selections are made on each page, so that I can have all the rows selected in one session. Is that right? Thanks!