Per far ciò l'html non ti basta, devi utilizzare un linguaggio lato server... tipo php o asp.