Submit and reset buttons

Hello there, anyone know any good tutorials where the drawing drawn with the drawing API can be submitted to a database. Also a reset button to clear the drawing?

Thanks in advance.