Quote from: featherodd at Nov 22, 2009, 07:38 PM
This part I understand. Buy I don’t know how to format my chunk (classes, ID’s, expected form fields) to work with this snippet. What I was asking for was how to get it to spit out a default chunk? To modify into my own. Or is there documentation on this?
What you’ll need to do is create a form with the name "websignupfrm" and that POSTs the data to [+action+]:
<form action="[+action+]" method="post" name="websignupfrm">
In that form you’ll need to have a checkbox with the name "subscribe" - if any value is submitted for "subscribe" (i.e. it is checked) then the user will be added to your CM list.
Other than that you’ll also need fields with the following names: username, fullname, email, password, confirmpassword, country, state, zip, and (if you are using a CAPTCHA) formcode. The fullname and email fields contain data that is submitted to CM, while the rest have data to create the MODx users.
You’ll also need to give the submit button the name "cmdwebsignup".
Does that help?