php - Usage of createElement/appendChild in IE8 for 512sha encrypted password? -


i want encrypt password login-form. have submit-button in index.php, encodes pw onclick:

<button type="submit" class="btn" onclick="formhash(this.form, this.form.password);">

the js looks this:

function formhash(form, password) {    var p = document.createelement("input");    form.appendchild(p);    p.name = "p";    p.type = "hidden"    p.value = hex_sha512(password.value);    password.value = "";    form.submit(); } 

the src works fine ff & chrome, in ie8 doesnt (there no return-value). think, problem occurs createelement or appendchild, cant isolate it. help?

many thanks


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -