diff --git a/providerwww/application/controllers/Register.php b/providerwww/application/controllers/Register.php index 22f47fe..9b0bd85 100644 --- a/providerwww/application/controllers/Register.php +++ b/providerwww/application/controllers/Register.php @@ -9,9 +9,34 @@ class Register extends Web_Controller { $this->renderExternalPage('register', $data); } - public function resetpass(){ - - $data = array(); + private function RegisterAccount() { + $data = array(); + // echo "xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "; + $data["practice_name"] = $this->input->post('practice_name'); + $data["firstname"] = $this->input->post('firstname'); + $data["lastname"] = $this->input->post('lastname'); + $data["email"] = $this->input->post('email'); + $data["password"] = $this->input->post('password'); + $data["username"] = $this->input->post('username'); + + $this->renderExternalPage('register', $data); + } + + public function resetpass() { + + $data = array(); $this->renderExternalPage('resetpass', $data); - } + } + + public function startacc() { + // echo "xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "; + + $data = array(); + if ($this->input->post()) { + $this->RegisterAccount(); + } else { + $this->index(); + } + } + } diff --git a/providerwww/application/views/register.php b/providerwww/application/views/register.php index 0591c13..a6f4ade 100644 --- a/providerwww/application/views/register.php +++ b/providerwww/application/views/register.php @@ -31,43 +31,43 @@ if (!isset($facility_text) || $facility_text == '') {
Welcome, Please create your account.
-