Jump to content

Embedding JavaScript in PHP


harishkumar09

Recommended Posts

How do we embed JavaScript in PHP code ? Is it the same way as in HTML ?

 

More specifically , I want to add "bookmark this site"  button onto my phpBB forum. It is a javascript.It was giveb y the site www.addthis.com which gives this javascript to add buttons to enable people to bookmark your site in their social bookmarking sites like digg , Reddit , facebook.

 

I want to have this appear at the top of every new thread in my phpBB forum. Or even just in the index page will do.All I need to know is how do I go about embedding this Javascript in php or.tpl code ?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/118583-embedding-javascript-in-php/
Share on other sites

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.