Just use PHP echo commands.
<?
echo "<script language=\"JavaScript\">\n" ;
echo "alert(" javascript from php ");\n" ;
echo "</script>" ;
?>
How to insert javascript in php code
Just use PHP echo commands.
<?
echo "<script language=\"JavaScript\">\n" ;
echo "alert(" javascript from php ");\n" ;
echo "</script>" ;
?>