View Single Post

Old 06-15-2007, 11:48 AM   #4 (permalink)
soheilnb
Junior Member
 
Join Date: Jun 2007
Posts: 1
Rep Power: 0 soheilnb is on a distinguished road
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:
__________________
soheilnb is offline   Reply With Quote