Ver Mensaje Individual
  #21 (permalink)  
Antiguo 26/08/2011, 20:00
Avatar de solhdeck
solhdeck
 
Fecha de Ingreso: junio-2011
Mensajes: 87
Antigüedad: 12 años, 11 meses
Puntos: 32
Respuesta: problema envio de variables por url como se hace?

Código PHP:
<?php
echo '<div id="tabla">
      <table width="591" id="ta">
        <tr>
          <td colspan="5" bgcolor="#31317B"><div align="center" class="Estilo3">Contactos</div></td>
        </tr>
               <tr>
          <td bgcolor="#E4E4E4"><div align="center"><em><strong>Nombre</strong></em></div></td>
          <td bgcolor="#E4E4E4"><div align="center"><em><strong>Email</strong></em></div></td>
          <td bgcolor="#E4E4E4"><div align="center"><em><strong>Modificar</strong></em></div></td>
          <td bgcolor="#E4E4E4"><div align="center"><em><strong>Eliminar</strong></em></div></td>
          <td bgcolor="#E4E4E4"><div align="center"><em><strong>Mas Informacion...</strong></em></div></td>
        </tr>'
;
        }
        
?>
        <?php
        
while($Id_Usuariomysql_fetch_array($result))
        {
        
?>
        <tr>
      <td><?php echo $Id_Usuario['Id_Contacto'];?></td>
          <td><?php echo $Id_Usuario['Nombre'];?></td>
          <td><?php echo '<a href="modificar.php?id='.$id_usuario['Id_Contacto'].'">Modificar</a>';?></td>
        </tr> 
          <?php
        
}
        
        
?>
      </table>
    <input type="text" id="Id_Contacto" />

?>
Y luego en "modificar.php" un
Código PHP:
if (isset($_GET['id'])) $id_usuario $_GET['id']; 
para recibirlo
__________________
El karma me anima a seguir contestando preguntas... si te ayudé dame un poquito ;)