Menu
Hello,
I tried embedding php in javascript but am not able to do so. I want to access the database using php but am not able to implement even a very simple echo statement. On clicking a submit button the javascript function with the embedded php is called. Enclosing below the code.
[CODE]function dblookup()
{
<?php
echo “Get values from the database”;
?>
}
<HTML>
<BODY>
<FORM>
<INPUT type=”button” name=”PowerSubmit” value=”Submit” style=”position:absolute;left:600px;top:260px;z-index:76″ onClick=”dblookup()”>
</FORM>
</BODY>
</HTML>
Please could you help me out with this simple query.
Thanks in advance