Ho paura che l'HTML non ti basti.

Devi usare un linguaggio lato server come PHP o ASP.