Ver Mensaje Individual
  #1 (permalink)  
Antiguo 29/06/2013, 11:04
miocorona
 
Fecha de Ingreso: junio-2013
Mensajes: 1
Antigüedad: 10 años, 10 meses
Puntos: 0
Como mandar llamar una funcion php mediante un boton

El problema que tengo es que no puedo mandar llamar la funcion php que tengo mediante un boton, este es mi codigo..ayuda porfavor


<?
$create = "create";
$database = "database";
$identificador = "identificador";



//Reglas

$regla1=$create." ".$database." ".$identificador;


function compilar(){
if(strcmp(contenedor,$regla1)==0)
{
echo "Sintaxis Correcta";
}
else
{
echo "Eror En sintaxis";
}

}

?>

<html>
<title> </title>
<body>

<input type="text" id="contenedor"/> <input type="button" id="com" value="compilar" onClick="compilar();" />
</body>
</html>