Web Poll

This page demonstrates the updating of a database. A trivial exercise reflects 5 records in a database table. When you choose an option in the form below a value is sent to the database which in turn increments a 'votes' field by one. The 'poll' could appear within other pages to be visible throughout the web site rather than being on its own page.

In this example we have not attempted to prevent the user from 'voting' more than once, however, with a login system where the users details are stored in a database and the password is checked against the user we could mark that user has having voted, hence preventing further submissions afterwards.

Which Supermarket are you most likely to use?
Tesco
Sainsburys
Asda
Morrison
Other