Created
July 18, 2011 19:45
-
-
Save splittingred/1090454 to your computer and use it in GitHub Desktop.
File-based Hooks coming in FormIt 2.0
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
[[!FormIt? | |
&submitVar=`submit` | |
&preHooks=`[[++assets_path]]hooks/myhook.php` | |
&validate=`name:required` | |
]] | |
<form action="[[~[[*id]]]]" method="post"> | |
<label>Name: [[!+fi.error.name]] | |
<input type="text" name="name" value="[[!+fi.name]]" /> | |
</label> | |
<input type="submit" name="submit" value="Send Form" /> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment