<input type=checkbox name=marked[] value=1 ></TD>...
<input type=checkbox name=marked[] value=2 ></TD>...
<input type=checkbox name=marked[] value=3 ></TD>...


The user shall mark interesting records and upon submitting the form shall
be shown on a new page showing only the marked records.

<?php
    $where = '';
    if (isset($marked)){
        $ids = array();
        while (list(,$id) = each($marked)){
            $ids[] = $id;
        }
        $where = "where id in (" . implode(', ', $ids) . ") ";
    }
    $query = "select blah, blah, blah from whatsit $where ";
?>

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to