Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2014 22:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Single Page App - Sammy Form Template
<form action="#/pretend/post/url" method="post">
<p><label for="name">Name</label>
<input type="text" name="name" /></p>
<p><label for="email">Email</label>
<input type="text" name="email" /></p>
<p><label for="role_admin">Admin</label>
<input type="checkbox" name="roles[]" value="admin" id="role_admin"/></p>
<p><label for="role_author">Author</label>
<input type="checkbox" name="roles[]" value="author" id="role_author"/></p>
<p><input type="submit" value="Post" /></p>
<h3>Plain old form</h3>
<form method="post" action="/i_should_submit">
<p><input type="submit" value="Dont press me!" /></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment