In the previous post,’Create Dynamic Date Selects‘, we ended up with select lists for the Month, Day and Year. In this post, we’ll make these more intuitive by only displaying the correct number of days for a given month/year combination; Continue reading »

 

An example of what you’re creating can be seen here.

The complete script can be downloaded here AjaxRequest (30.91 KB) Create your first AJAX Request :)

In the first part, we created a function, getRequestObj(), that we can now use to initiate a new XMLHttpRequest object. Continue reading »

 

If you have required fields in a form, a nice visual clue for the user is to have a message ‘pop up’ if the field hasn’t been filled in. A simple example of what I mean can be seen here.

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 »

 

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 »

© 2012 ElanManSuffusion theme by Sayontan Sinha

Page optimized by WP Minify WordPress Plugin