You can download the entire source code for this series here PHP Quiz (10.88 kB)

Now that we’ve thought of some questions/answers and created ‘questionsandanswers.php’, it’s time to create the basic html pages. The quiz consists of three pages, ‘index.php’, ‘test.php’ and ‘results.php’. The first two, ‘index’ and ‘test’ are very similar so we’ll start with those. Continue reading »

 

You can download the entire source code for this series here PHP Quiz (10.88 kB)

Part 1 can be seen here

To start building your own php-powered quiz the first thing you need, surprise surprise, is some questions and answers. We want easy access to these later on so we’ll create two arrays, one for the questions and one for the answers.

Continue reading »

 
cookies screenshot

cookies screenshot

If you’ve read the snippet ‘Simple Javascript Stylesheet Changer’, you’ll no doubt be wanting to store the user preferences across the site. This can easily be done with the use of cookies.

Continue reading »

 

The Web Acronym Test

OK, this is just a silly quiz. You probably won’t want to make your own quiz but who knows? It’s a fun little project to do and at the same time introduces you to some basic php that you might not have used before such as arrays, sessions, SimpleXml and more .

For this first post, I’m going to show you the example. In future posts, I’ll show you how to build your own.

Continue reading »

 

Due to the comment from BlueCougar on the ‘Javascript Random Header Image’ snippet, I’m writing this snippet to combine the random header and the style changer. Continue reading »

 

If you want to give your users the ability to change the appearance of your website dynamically and you don’t fancy using a PHP Style Switcher, you can always use JavaScript. Continue reading »

© 2012 ElanManSuffusion theme by Sayontan Sinha

Page optimized by WP Minify WordPress Plugin