Jump to content


This topic is now archived and is closed to further replies.


How to write javascript inside PHP? (IT IS POSSIBLE????)

Recommended Posts

do you mean like create a javascript from variables in php if so then you can do it like this

echo '<javascript language="javascript">';
echo "all your code here and variables just like $var will work";
echo '</script>';


Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.