Ver Mensaje Individual
  #4 (permalink)  
Antiguo 07/06/2012, 09:25
anidivi
 
Fecha de Ingreso: octubre-2010
Mensajes: 32
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: Llamar a un función desde un hipervinculo

Gracias por responder!! muestro el código para que me puedan ayudar un poquito más ;)

$TITULOSECCION="Administrador de Destinos";


$sql3="SELECT * FROM destinos order by nombre";
$resultado= mysql_query($sql3, $conn);

$CONTENIDO="<table>";
$CONTENIDO.= "<TR><TH>IdDestino</TH><TH>Destino</TH><TH>Acciones</TH></TR>";

while ($row=mysql_fetch_array($resultado))

{

$CONTENIDO.= "<TR><TD>".$row["IDDESTINOS"]."</TD><TD><input type=text name=NOMBRE value='".$row["NOMBRE"]."'></td><TD><input type=submit value='Grabar'> <a href='./index.php?IDSECCION=2&IDDESTINOS=".$row["IDDESTINOS"]."'>editar opciones</a> <a href=<a href='./index.php?IDSECCION=$IDSECCION&ACCION=BorrarDestin o&IDDESTINO=".$row["IDDESTINOS"]."'>Borrar</a></td></TR>";

}

$CONTENIDO.= "<TR><TD>Nuevo</TD><TD><input type=text name=NOMBRE value=''></td><TD><a href= a href='./index.php?IDSECCION=$IDSECCION&ACCION=GrabarDestin o&NOMBRE=".$row["NOMBRE"]."'>Grabar</td></TR>";

$CONTENIDO.="</table>";