To make the form fill out without error I changed the Last name validation field from:
<?php
if (ValidatedField('registration','registration')) {
if ((strpos((",".ValidatedField("registration","registration").","), "," . "6" . ",") !== false || "6" == "") || (strpos((",".ValidatedField("registration","registration").","), "," . "7" . ",") !== false || "7" == "")) {
if (!(false)) {
?>
to
<?php
if (ValidatedField('registration','registration')) {
if ((strpos((",".ValidatedField("registration","registration").","), "," . "6" . ",") !== false || "6" == "")) {
if (!(false)) {
?>
However, when I click on register I get an error message: Invalid information, please check your entries and try again. The form is not populating the pcms2_users table. Any thoughts?