On 5/5/2011 3:38 PM, Michael Simiyu wrote: > Dan, > > thanks for the reply.....this is the code that shows/lists the categories > you need to make the following check look at $_GET instead of $_POST. Or, I hate to suggest it, you can use $_REQUEST. It includes $_GET, $_POST, and others all in one variable. > if (isset($_POST['category_'.$c->id])) echo 'checked="checked"'; [snipped] > > i can see the categories ids and i just want to get a custom link for each > category and essentially hide this section from my memebers.... > > Thanks > > > On May 6, 2011, at 1:28 AM, Daniel Brown wrote: > >> <?php >> >> $cat_ids = array(1,3,5,7,13,15,24,36,81,92); >> >> echo '<select name="categories">'.PHP_EOL; >> foreach ($cat_ids as $cid) { >> >> echo ' <option value="'.$cid.'"'; >> >> if (isset($_GET['cat_id']) && $_GET['cat_id'] == $cid) { >> echo ' selected="selected"'; >> } >> >> echo '">'.$cid.'</option>'.PHP_EOL; >> } >> echo '</select>'.PHP_EOL; >> >> ?> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php