First, get this done, then make it usable by a large group of people.
In class reviewed this php code which runs from this website.
We looked at this javascript code which runs from this site (you can view source on that too).