Puoi anche evitare il database se è per quello, e' sufficiente che nella form passi un valore che ti permetta di convalidare l'input (es. md5('stringa da testare' . 'secret hash')).