Excuses: ik heb zojuist mijn probleem in het Engels beschreven, op verzoek kan ik het nog vertalen - alvast bedankt!
--
I’m Building a web application that asks for user input using html forms. The given input has to be checked by PHP and, after that, PHP (and MySQL) will create the info for a new question which will with the use of JavaScript/DOM be visible instantly on the website.
The JavaScript part (creating questions) is done client side, while everything else on the website (which is a lot) is done server side with PHP.
I just learned how to use PHP-Requests to let the JavaScript get information from the server. Its seems however that with this method the control side of the website becomes the client side.
This is something that doesn’t seem a good idea. It seems that this way I have to call the PHP file over and over again, like a little function while its variables have lost there value every new call.
Is there a way the server php side and the client html/JavaScript can just continue running while exchanging information / is there another (easy) way to use the JavaScript functionality without losing the server side control?
Thanks a lot!
Gert
2.991 views