Simple HTML single password form -


i preface question with, newbie go easy on me.

i trying create simple html form single password field.

what happen when type in password take me website same name.

example: type in monkey, take monkey.html.

it sounds super easy lost.

i not find duplicate here form give 404 on wrong password.

<form onsubmit="location=this.password.value+'.html'; return false">   <input type="password" name="password" /> </form> 

the return false stop form submitting. use inline js because issue simple not worth rolling out unobtrusive script e.preventdefault , all.


Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

Get Max value from table in hibernate -

php - Alamofire request parameters empty -