2
I’m new in the area of web programming and I’m developing a site in php, php itself until I understand well how it works but as for javascript I’m not very sure about when to use.
for example, and a screen of the site there is a table with approximately 100 items that are sent by PHP, I had made a pagination to better view the data on the page, however I did it by PHP itself and for business reasons the decision was made to always load the 100 records instead of loading them per page as I had done in php.
In this case I found it interesting to use javascript to manipulate html and make a dynamic paginated table, but it is worth mentioning that when clicking on these data javascript also fills inputs that can perform an update via PHP in the BD.
Is this kind of approach correct ? PHP -> Javascript -> PHP ... When do I know I should use javascript ?