<form onsubmit="action = ps.value + '.html'" method="POST"> <input name="ps" type="password"> <input value="go" type="submit"> <form>