Skip to content

Instantly share code, notes, and snippets.

@dubrod
Last active June 1, 2016 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dubrod/c378ac44e851a6035c59d75e34d73d80 to your computer and use it in GitHub Desktop.
Save dubrod/c378ac44e851a6035c59d75e34d73d80 to your computer and use it in GitHub Desktop.
MODX - Register Quickstart
[[!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