Ver Mensaje Individual
  #10 (permalink)  
Antiguo 08/05/2005, 09:33
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
A ver....... Si entiendo bien sería algo así
Código PHP:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table width="608" border="0">
    <tr>
      <td><? 
                
if (count($_POST['nomCat']) > 0) {
                    foreach(
$_POST["nomCat"] as $nomCat)
                    {
                        
//echo "<br>DNI: "."$dni";
                    
?>
                        <input type="hidden" name="nomCat[]" value="<? echo $nomCat?>" >
                    <?
                    
}
                }
 
            if (
count($_POST['nombreAut']) > 0) {
                foreach(
$_POST["nombreAut"] as $nomAut)
                {
                    
//echo "<br>DNI: "."$dni";
                
?>
                    <input type="hidden" name="nombreAut[]" value="<? echo $nomAut?>" >
                    <tr><td>AUTOR: </td><td><? echo $nomAut; echo "<br>"?></td></tr>
                <?
                
}
            }
        
?>
       </td>
      <td width="135">Nombre y Apellidos:</td>
      <td width="463"><input type="text" name="nombreAut[]" width="450"></td>
    </tr>
  </table>
  <table width="200" border="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="487" border="0">
    <tr>
      <td width="481"><div align="right">
        <input type="submit" name="AnyadirAutor" value="Añadir Autor">
      </div></td>
    </tr>
  </table>
  </form><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
  <table width="200" border="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="521" border="0">
    <tr>
      <td width="224" height="38"><div align="center"><strong><span class="style1">CAT&Aacute;LOGO/S ASOCIADOS </span></strong></div></td>
    </tr>
  </table>
  <table width="234" border="0">
    <tr>
      <td><?    if (count($_POST['nombreAut']) > 0) {
                    foreach(
$_POST["nombreAut"] as $nomAut)
                    {
                        
//echo "<br>DNI: "."$dni";
                    
?>
                        <input type="hidden" name="nombreAut[]" value="<? echo $nomAut?>" >
                    <?
                    
}
                }

                if (
count($_POST['nomCat']) > 0) {
                    foreach(
$_POST["nomCat"] as $nomCat)
                    {
                        
//echo "<br>DNI: "."$dni";
                    
?>
                        <input type="hidden" name="nomCat[]" value="<? echo $nomCat?>" >
                        <tr><td>CATÁLOGO: </td><td><? echo $nomCat; echo "<br>"?></td></tr>
                    <?
                    
}
                }
        
?>
       </td>
      <td width="67">Nombre:</td>
      <td width="157"><input type="text" name="nomCat[]"></td>
    </tr>
  </table>
  <table width="200" border="0">
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>
  <table width="499" border="0">
    <tr>
      <td width="481"><div align="right">
          <input type="submit" name="AsignarCatalogo" value="Asignar Catálogo">
      </div></td>
    </tr>
  </table> 
  </form>
De nada