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

Leave a Reply

Your email address will not be published. Required fields are marked *

twenty six + = 31