Last active
June 1, 2016 14:42
-
-
Save dubrod/c378ac44e851a6035c59d75e34d73d80 to your computer and use it in GitHub Desktop.
MODX - Register Quickstart
This file contains hidden or 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
[[!Register? | |
&submittedResourceId=`1` | |
&validate=` | |
fullname:required, | |
email:email:required, | |
username:required:minLength=^6^, | |
password:required:minLength=^6^ | |
` | |
]] | |
<form action="[[~[[*id]]]]" method="post"> | |
<label for="fullname">Full Name [[!+error.fullname]]</label> | |
<input type="text" name="fullname" id="fullname" value="[[+fullname]]"> | |
<label for="email">Email [[!+error.email]]</label> | |
<input type="text" name="email" id="email" value="[[+email]]" /> | |
<hr> | |
<h3>Login Info</h3> | |
<label for="username">[[%register.username? &namespace=`login` &topic=`register`]] [[!+error.username]]</label> | |
<input type="text" name="username" id="username" value="[[+username]]" /> | |
<label for="password">[[%register.password]] [[!+error.password]]</label> | |
<input type="password" name="password" id="password" value="[[+password]]" /> | |
<hr> | |
<button type="submit">REGISTER</button> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment