Ver Mensaje Individual
  #2 (permalink)  
Antiguo 11/09/2012, 10:32
jossss
 
Fecha de Ingreso: mayo-2006
Mensajes: 475
Antigüedad: 18 años
Puntos: 58
Respuesta: formulario de campo multiple php

Y así?
Código PHP:
<div id="lista_not">
<form action="main/ges_noticias.php" method="POST" enctype="multipart/form-data">
<table class="selec_not" width="500" border="0">
<tr>
<td colspan="2"><h2>Lista de Noticias Bloque 2</h2></td>
</tr>
<tr>
<td width="20">Seleccionar</td><td>Noticia</td>
</tr>
<?php
include ("main/conectar.php");
$res=mysql_query ("SELECT * FROM noticias WHERE bloque='bloque2' AND celda='central'");
if(
mysql_num_rows($res)==0){?>
    Error al realizar el listado.<br>
<?php 
}else{
    while (
$file=mysql_fetch_array($res)){
        
$id_not $file["id_noticia"];
        
$noticia $file["noticia"];
        echo 
"<tr><td align='center' valign='top'><input type='checkbox' name='codigo[]' value='$id_not'></td><td>$noticia</td></tr>";
    }
}
?>
</table>
<input type="hidden" name="p_web" value="ges_bloque2.php">
<input type="hidden" name="sel_bloq" value="bloque2">
<input type="hidden" name="sel_cel" value="central">
<input type="hidden" name="mostrar" value="si">
<input type="hidden" name="multiselec" value="1">
<input name="submit" type="submit" value="Publicar Noticia">
</form>
</div>