fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user