Por ejemplo:
http://localhost/form_categoria.php?...ecesor=ninguna
o
http://localhost/form_categoria.php?...cesor=loquesea
form_categoria.php
Código PHP:
if (isset($id)) {
$categs=lista_categorias($_GET['p_campo']); ?>
<select name="p_predecesor" id="categoria">
<? if ($predecesor==ninguna) { ?>
<option value="ninguna" selected>Ninguna (no tiene predecesor)</option>
<? }
foreach($categs as $categ) { ?>
<option value="<?=$categ['id']?>" selected <?php echo ($categ['id'] == $id) ? "selected" : "";?>>
<?=$categ['nombre']?>
</option>
<? } ?>
</select></td>
![apachar ojo](http://static.forosdelweb.com/fdwtheme/images/smilies/wink.png)