Jump to content

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


rajmohan

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

Archived

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

×
×
  • Create New...

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.