|
PHP has not changed the shape of HTML tags and codes in any way, so you can insert a piece of javascript code into a php file exactly the same way you do it in html file. PHP only allows you to mark certain parts of a php file as php code which will be interepreted by php program before it is send to the client browser.To insert a javascript code, do it inside ... as usual, but make sure it is not inside special php tag.RIGHT: // your code ...WRONG:
__________________
|