What is pagination?
Simply put, pagination is splitting up many results in to bite size chunks (pages) that helps the user quickly sort through the results instead of having to scroll way down the page to find what they’re looking for.
Simply put, pagination is splitting up many results in to bite size chunks (pages) that helps the user quickly sort through the results instead of having to scroll way down the page to find what they’re looking for.
Just a quick heads up to let you know that you can now download all of the source code for the PHP Quiz. This might make it easier for you to get up and running without trying to follow all of the series. I’ve also included the small amount of JavaScript too.
You can download it here. I’ll also put a download link at the top of each post in the series.
Cheers,
ElanMan
You can download the entire source code for this series here
The first part of this post will concentrate on adding new users/scores to the leaderboard (leaders.xml). We only want to add this information to the xml file when the user has completed the quiz(obviously) so, on ‘test.php’, we check for the presence of the $last variable. Continue reading »
You can download the entire source code for this series here PHP Quiz (10.88 kB)
In order to store usernames and scores we’re going to use an xml file. We could also do this with a database but for the sake of simplicity, we’ll use xml. Copy and paste the following in to a text editor and save it as ‘leaders.xml’ Continue reading »
You can download the entire source code for this series here PHP Quiz (10.88 kB)
At the end of the last post, we had an index page allowing users to register for the quiz (or not) via 2 forms. Now we need to display the questions/answers on ‘test.php’.
Inside the #quiz div, replace the content of the heading and paragraph with the following. Continue reading »
You can download the entire source code for this series here PHP Quiz (10.88 kB)
If you take a look at ‘index.php’ from Part 3, you’ll see there are 2 forms, one for users who wish to register and one for those that don’t (‘Just Take The Test’). Both of these forms send the user to ‘test.php’ so ‘test.php’ needs to check which form the user submitted. Continue reading »
Page optimized by WP Minify WordPress Plugin
What You Said