Last active
December 12, 2015 02:59
-
-
Save Swader/4703512 to your computer and use it in GitHub Desktop.
CI++ article gist 08
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
#loginform_main { | |
border: 1px solid silver; | |
border-radius: 10px; | |
padding: 10px; | |
margin: auto; | |
} | |
#loginform_main label { | |
display: inline-block; | |
width: 200px; | |
border-right: 1px solid silver; | |
margin-right: 10px; | |
} | |
</style> | |
<form id="loginform_main" action="" method="post"> | |
<div class="formrow"> | |
<label for="loginform_username">Username: </label> | |
<input type="text" name="username" placeholder="username" id="loginform_username" /> | |
</div> | |
<div class="formrow"> | |
<label for="loginform_password">Password: </label> | |
<input type="password" name="password" placeholder="password" id="loginform_password" /> | |
</div> | |
<br /> | |
<input type="submit" name="submit" value="Log in" /> | |
</form> | |
<script type="text/javascript" src="/validate.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$("loginform_main").validate(); | |
}); | |
</script> |
Author
Swader
commented
Feb 3, 2013
https://gist.github.com/4703512
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment