Banner image

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

380 memberDB.php INSERT INTO et_page_visits ( vuid,vpage,vreferrer,vtime,vlang,vagent,vbot,vversion,vguest,vip) VALUES ( "1","http://englishtap.com/help/form-example","Unknown","1534483951","","CCBot/2.0 (https://commoncrawl.org/faq/)","","biscuits-12y","","54.161.49.216") ON DUPLICATE KEY UPDATE vuid = "1" ,vpage = "http://englishtap.com/help/form-example" ,vreferrer = "Unknown" ,vtime = "1534483951" ,vlang = "" ,vagent = "CCBot/2.0 (https://commoncrawl.org/faq/)" ,vbot = "" ,vversion = "biscuits-12y" ,vguest = "" ,vip = "54.161.49.216"
538 engine.php getContent help