The difference between php and js: 1. js is a script language that works on the browser side, while php is a script that works on the server side; 2. The data submitted by js is handed over to the browser for processing, while php The data is submitted to the server for processing, and the server responds to the browser.
Recommended: "PHP Video Tutorial"
The syntax is similar. What you said above is correct. js=javascript is a scripting language that works on the browser side. The data it submits is handed over to the browser for processing. But the current Ajax technology can already deliver the data submitted by js to the browser for processing.
php is a script that works on the server side. It submits data to the server for processing, and the server responds to the browser. You have to look at the BS structure for this. Suggestions for learning: Many people learn js first, which is correct, but if you learn PHP first, js is learned with needs, and what you learn will be more targeted.
Recommended: "javascript Advanced Tutorial"
Embedding page method
JS embedding method: