diff --git a/www/application/controllers/Signup.php b/www/application/controllers/Signup.php index be14f7b8..7f22acd5 100644 --- a/www/application/controllers/Signup.php +++ b/www/application/controllers/Signup.php @@ -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) { diff --git a/www/application/views/site3/external/view_signup.php b/www/application/views/site3/external/view_signup.php index 19a28458..4a21db0e 100644 --- a/www/application/views/site3/external/view_signup.php +++ b/www/application/views/site3/external/view_signup.php @@ -23,7 +23,7 @@
-
+
@@ -51,17 +51,18 @@
+
- +
- +
@@ -69,7 +70,7 @@
- +
@@ -81,7 +82,7 @@
- + @@ -106,26 +107,38 @@
- +
+ +
+ +
+ +
-
+ +