No al cierre de webs
ShareCode
Permalink: http://www.treeweb.es/u/974/ 01/02/2011

ShareCode

1 <form action="/1/account/login/?" method="post" onsubmit="addParams(this)">2  <input type="email" id="u" name="u" placeholder="User"><br>3  <input type="password" id="p" name="p" placeholder="Password"><br>4  <input type="submit" value="Login">5 </form>6 7 <script type="text/javascript">8 function addParams(form) {9  var u = encodeURIComponent(document.getElementById('u').value);10  var p = encodeURIComponent(document.getElementById('p').value);11  12  form.setAttribute('action', '/1/account/login/?u='+u+'&p='+p);13 }14 </script>15 16 <style type="text/css">17  form {18  max-width: 200px;19  display: block;20  margin: 0 auto;21  padding: 20px;22  border: solid silver 1px;23  }24  25  form input[type="email"],26  form input[type="password"],27  form input[type="submit"] {28  border: solid silver 1px;29  display: block;30  margin: 0 -1px;31  width: 100%;32  }33  34  form input[type="submit"] {35  padding: 8px 0;36  cursor: pointer;37  }38  39  form input[type="submit"]:hover {40  background: #F4F4F4;41  }42 </style>
Enlace
El enlace para compartir es: