Skip to content

Instantly share code, notes, and snippets.

@alanedwardes
Created December 1, 2011 23:38
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 alanedwardes/1420726 to your computer and use it in GitHub Desktop.
Save alanedwardes/1420726 to your computer and use it in GitHub Desktop.
<form action="/posts/xyz/#comment-form" method="post">
<input type="text" name="email" value="" id="email_field" style="display:none" />
<div>
<label for="cname">Name <small>(If it's not real, it better be cool)</small></label>
<input name="name" type="text" id="cname" class="text" value=""/>
</div>
<div>
<label for="jerry_the_spider">Email <small>(optional, used for <a target="_blank" href="http://www.gravatar.com/">your avatar</a>)</small></label>
<input name="jerry_the_spider" type="text" id="jerry_the_spider" class="text" value=""/>
</div>
<div>
<label for="curl">URL <small>(optional, makes your name link to your site)</small></label>
<input name="url" type="text" id="curl" class="text" value=""/>
</div>
<div>
<label for="cbody">Comment <small>(No HTML, URLs are made clickable, press enter twice for a new paragraph)</small></label>
<textarea name="body" id="cbody" rows="7" cols="30"></textarea>
</div>
<div>
<input type="submit" class="save" value="Save Comment"/>
</div>
<input type="text" name="honeypot" value="" style="display:none" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment