Using php to build a quiz which requires a while loop to scroll through the questions array in turn. How can the user activate 'next question' without jquery? Can I somehow jump to an anchor higher up the while loop to increment a variable? The messy alternative is to create a new page for each question with hyperlinks.
Asked
Active
Viewed 41 times
0
-
3PHP is going to create the entire page and send it to the browser. There can't really be any user interaction without making another request, whether that is AJAX or a page reload/load new page. – Don't Panic Oct 26 '18 at 16:36
-
If you can show an example to illustrate more specifically what you're trying to do, it will be easier for people to suggest some possible solutions, or maybe even answer with something that will work for you. – Don't Panic Oct 26 '18 at 16:37
-
Possible duplicate of [What is the difference between client-side and server-side programming?](https://stackoverflow.com/questions/13840429/what-is-the-difference-between-client-side-and-server-side-programming) – miken32 Oct 26 '18 at 21:40
-
I guess it really isn't possible as I had already thought. I cannot elaborate any more on the original question. Thanks. – zap Oct 27 '18 at 23:18