Php and JS call problems I want to embed JS in PHP and then make it into a plug-in. some people say that jquery is used for js and php interaction... how can this be done? I have already done a good job of JS, and I want to make a brand new PHP and put it into JS! Could you please refer to this JS and FLASH ------ solution ------------------ you have not explained what role php plays in it ------ solution ------------------- php and JS call problems
I want to embed JS in PHP and make it a plug-in. some people say that jquery is used for interaction between js and php...
How can this be done? I have already done a good job of JS, and I want to make a brand new PHP and put it into JS! Please
This JS also has FLASH
------ Solution --------------------
You have not explained what role php plays in it.
------ Solution --------------------
Can I just echo the js code on the generated page?
------ Solution --------------------
Is PHP a server language? What role does PHP play in it?
------ Solution --------------------
JavaScript cannot be nested with PHP. only PHP can be nested with JS.
In addition, Jquery is written by JS. the essence is JS. it only simplifies JS tools.
------ Solution --------------------
Php runs on the server, while js runs on the client. if they are integrated, you need to understand this truth first. if you do not understand it, it will be more troublesome.
Secondly, jquery is a js Framework, similar to zend Framework, which is a PHP Framework.