Skip to content

Instantly share code, notes, and snippets.

@nfarah86
Created May 6, 2016 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nfarah86/4d561ba279e00f2bd3328f6b74926636 to your computer and use it in GitHub Desktop.
Save nfarah86/4d561ba279e00f2bd3328f6b74926636 to your computer and use it in GitHub Desktop.
Check to See if the User is in the Database
// omitted code
<form method="POST" class="navbar-form nav-center pull-right" action="/process_login">
<div class="form-group">
<input type="text" placeholder="Username" class="form-control" name="user_name">
<input type="hidden" name="action" value="signIn">
</div>
<div class="form-group">
<input type="password" placeholder="Password" class="form-control" name="password">
</div>
<div class="form-group">
<input type="email" placeholder="Email" class="form-control" name="email">
<button type="submit" class="btn btn-success">Log In </button>
<p style="font-size:8px"> Don't have an account? <a href = "/register_user">Register</a> </p>
</div>
</form>
// omitted code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment