This commit is contained in:
2022-02-14 01:21:46 -05:00
parent 2261ab9d72
commit b992d1f9b4
2 changed files with 25 additions and 9 deletions
+4 -1
View File
@@ -18,6 +18,7 @@ class Signup extends CI_Controller {
$submit = NULL;
extract($_POST);
//var_dump($_POST);
$data['firstname'] = $firstname;
$data['lastname'] = $lastname;
@@ -39,7 +40,8 @@ class Signup extends CI_Controller {
$data['signup_error'] = '';
if ($_POST) { // post
if ($data['terms'] == 'on') {
if ($data['terms'] == 'on' || $data['terms'] == '1') {
$data['terms'] == 'on';
$terms_checked = 'checked';
}
@@ -73,6 +75,7 @@ class Signup extends CI_Controller {
} else {
$data['signup_error'] = "Enter all required fields";
}
//exit;
} // if post
$data['signup_error_style'] = '';
if (strlen($data['signup_error']) > 0) {