Abstract:
This report gives a detail account of the identified problem, easily access DOM using PHP and define the scope of the project. Moreover the author wishes to discuss about the risks and the problems identified in access DOM using PHP and suggestions to overcome those problems via a web library as a solution.
The basic idea is decrease the writing PHP code inside the HTML code or remove PHP code entirely from the HTML code. It is difficult for developers to write PHP inside HTML. In JavaScript we don’t need to write a code inside the HTML code they are accessing DOM and pointing values to the HTML tags. We can set default values before loading document from client side. JavaScript is client side scripting language, the reason is in the server side, if we need to manipulate Database date using JavaScript, then the data should be pass using the REST API. If developers can set placeholders using server side language like JavaScript. It is more secure than client side scripting.