
15/07/2010, 01:03
|
| | Fecha de Ingreso: julio-2010
Mensajes: 2
Antigüedad: 14 años, 8 meses Puntos: 0 | |
Respuesta: llamar funcion PHP desde JavaScript Prueben este codigo, a mi me funciona perfectamente
<html>
<head>
<title>Llamar funcion de Php desde Javascript</title>
</head>
<body>
<?
function verificar()
{
return "retorno de funcion en PHP";
}
?>
<script>
var variableJscript = "<? echo verificar()?>";
document.write("<br>llamada a funcion Php desde Javascript : "+variableJscript);
</script>
</body>
</html> |