Content / help / form-example .. concise-view << previous next >>

Form Examples

All biscuits forms should be in the /views directory withnames starting "form-"
<form class="biscuits" id="login_et" onsubmit="return loginSubmit();" action="/member/login-submit/" method="post">
<label for="username">
Username <span class="red" id="username_marker"></span>
<span class="help hidden" id="username_help"> Choose a username (a-z 0-9 &amp; No spaces) </span>
</label>
<input onblur="hideFieldHelp(this.id);" onfocus="showFieldHelp(this.id);" onchange="return biFieldChange(this);" class="savelog modified" name="username" id="username" value="" tabindex="0" type="text">
<br>
<label for="password">Password (Members only) </label>
<input onblur="hideFieldHelp(this.id);" onfocus="showFieldHelp(this.id);" onchange="return biFieldChange(this);" class="savelog modified" name="password" id="password" tabindex="1" type="password">
<br>
<label for="save-cookie-on">
save login <span class="warning"> * </span>
<span class="warning" id="save-cookie-on_marker"></span>
<span class="help hidden" id="save-cookie-on_help">
Save your login if you are on a private device
</span>
</label>
<input onblur="hideFieldHelp(this.id);" onfocus="showFieldHelp(this.id);" onchange="return biFieldChange(this);" name="save-cookie" id="save-cookie-on" value="1" checked="" type="radio"> Save
<input onblur="hideFieldHelp(this.id);" onfocus="showFieldHelp(this.id);" onchange="return biFieldChange(this);" name="save-cookie" value="" type="radio"> Don't save <br>
<input onblur="hideFieldHelp(this.id);" onfocus="showFieldHelp(this.id);" onchange="return biFieldChange(this);" name="form" id="form" value="login" type="hidden">
<button onblur="hideFieldHelp(this.id);" onfocus="showFieldHelp(this.id);" onchange="return biFieldChange(this);" type="submit" id="loginButton">Login</button>
</form>




iBiscuits LOGO