As I noted in a recent post, I am working on learning Php. As in much else that I do, it has been moving along in fits and starts. I am trying to go through the PHP in a Nutshell book page by page. But I get sidetracked by little projects that I decide I am ready to do.
I just finished a quiz program of which I am rather proud. I recently bought a website on babysitting, of all things. I decided that putting together a little quiz on babysitting would be a good idea, adding a bit of value, and perhaps adding to the so-called “stickiness” of the site.
I was actually quite amazed that I was able, with my limited experience, to put this together within four hours. I was quite careful to test it every step of the way. I also made sure that all of the code was on a seperate page, so that the form did not have to be on a page that could parse Php. This is rather important, as I am considering making up a series of quizes for my InDepthInfo website. Alot of the info there is academic, so it would be a good way for readers to test their retention of the material that they have read, and perhaps get the high points from it at the same time.
Take a look at the actual Php Quiz Code.