This is an old revision of the document!
You can use registration codes to place users in specific user groups at registration. Normally a client would need the registration before registering and then entering that registration in the registration code box at the front of the registration process and they would automatically be placed in the requisite user group. Some sites may want to give their clients a choice of which user group they wish to be placed based on their pricing needs. You can just list the registration codes within the instructions on the registration code page or you can create form like that described below that will enter the registration code for them as they choose it from a dropdown or a link within the page. How to create that is described here.
At the registration code page you can create a form or <a> links the client can use or click to place them within a user group of their choosing.
If using the "link" method create the links for each user group labelled the way you need to create html like:
<a href="register.php?registration_code=regcode-group-a">group a</a> <a href="register.php?registration_code=regcode-group-b">group b</a>
When the user clicks one of the links the registration code will automatically be entered.
If using the "form" method create the html form like the one below…
<form action="register.php" method="post"> <select name="registration_code"> <option value="regcode-group-a">group a</option> <option value="regcode-group-b">group b</option> </select> <input type="submit" name="submit_registration_code" value="Submit >>" class="enter_registration_code_button" /> </form>
This can only be done within the Registration Code Form page. The registration code html "switches/links" cannot be entered directly into the registration information collection form.