Created
July 2, 2014 15:54
-
-
Save jbroadway/10c672bb2421e1167957 to your computer and use it in GitHub Desktop.
Simple single-field form test. Save to apps/test/* (rename underscores to subfolders) and view the form at the URL /test/form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; <?php /* | |
[one] | |
not empty = 1 | |
; */ ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$f = new Form ('post', $this); | |
echo $f->handle (function ($form) { | |
info ($_POST); | |
}); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form method="post" id="{{_form}}"> | |
<p> | |
One: | |
<span class="notice" id="one-notice">Can't be empty</span><br /> | |
<input type="text" name="one" value="{{one|quotes}}" /> | |
</p> | |
<p><button>Submit</button></p> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment