Jump to content

Archived

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

rajmohan

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>';

Regards
Liam

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.