Bhe, credo che in html non sia fattibile! Dovresti usare una tecnologia lato server come php o asp (io ti consiglio php).