Skip to content

Instantly share code, notes, and snippets.

Embed
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>Roles</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>
</form>
<h3>Plain old form</h3>
<form method="post" action="/i_should_submit">
<p><input type="submit" value="Dont press me!" /></p>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment