View Full Version : if function is declare in Javascipt

04-26-2011, 08:12 AM
if function is declare in Javascipt then how it is call in php please give me an example :)

04-26-2011, 08:16 AM
That doesn't make sense to me.

PHP code is executed on the server before any html/css/javascript is sent back to the requesting browser.

Javascript is executed in the user's browser after the browser receives it from the server. So php code can create javascript code to be executed when it is received by the browser but not the other way round.

Can you give an example of what you are trying to do?