Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/06/2012, 09:35
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

Lo que quiero hacer es llamar a la funcion insert (por ejemplo) desde un <a href=....> lo he intentado pero no funciona, no salta ningún error sino que directamente no anda.

En el código:
a href= a href='./index.php?IDSECCION=$IDSECCION&ACCION=GrabarDestin o&NOMBRE=".$row["NOMBRE"]."'>Grabar</td></TR>";

la funcion GrabarDestinos es

function GrabarDestino(){
global $conn;
$NOMBRE=$_REQUEST['NOMBRE'];
$sql="INSERT INTO destinos (NOMBRE)
VALUES ('$NOMBRE')";
mysql_query($sql, $conn);


Gracias!