In an ideal world, creating a cross-browser dropdown menu would be straight forward. Unfortunately, the world of browsers is far from ideal (as long as Internet Explorer 6 still exists!). For other browsers, the following code works fine: Continue reading »

 

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’ve no doubt seen websites where the header image slowly moves, usually with a landscape or sky scene. Well, here’s how to make your own. Take a look here to see what you’ll be making. Continue reading »

© 2012 ElanManSuffusion theme by Sayontan Sinha

Page optimized by WP Minify WordPress Plugin