![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
07/06/2012, 09:25
|
| | Fecha de Ingreso: octubre-2010
Mensajes: 32
Antigüedad: 14 años, 4 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>"; |