Step three: added functionality for submitting a form. Note simple security check, parsing all values through html entities and forming a message to display.