This webpage has a quiz that uses PHP for validation as well as saving the last score.
This webpage has a random poll question and uses PHP to read from/write to a file.
This webpage has a random poll question and uses SQL relational databases to get and send information.