how call function php($varible) into javascript withod ajax:
Code:
<!--
this code only call funnctions php but
how call function php[ function-name(varible)]
intermanch@gmail.com
www.intermanch.blogfa.com
-->
<script>
function Helloo($f)
{
var t4 = document.createElement('div');
t4.innerHTML ="<?php hello() ?>";
document.getElementById('dl').appendChild(t4);
}
</script>
<?php
function hello()
{
//if on the java script can write function-name(varible) than can write echo varible;
//echo $x;
//help to complet this code
echo "name: ";
echo "<input><br>";
echo "<a href='http://www.intermanch.blogfa.com'>view my weblog";
//and all php cods even query from database 100% withod error
}
?>
<body>
<input value='click me' type=button onclick="Helloo('200')">
<div align=right id=dl>
</div>
</body>
</html>
Comment