Last active
July 15, 2020 14:03
-
-
Save bosunski/76c282d8d4186771dcf7c2363a09c307 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// doctor_registration.php | |
Session::init(); | |
$this->view->data['username'] = Session::get('username') ? Session::get('username') : ''; | |
$this->view->data['first_name'] = Session::get('first_name') ? Session::get('first_name') : ''; | |
$this->view->data['last_name'] = Session::get('last_name') ? Session::get('last_name') : ''; | |
$this->view->data['email'] = Session::get('email') ? Session::get('email') : ''; | |
// registration.php | |
<input type="email" name="email" id="email" value="<?=isset($username) ? $username : ''; ?>" class="form-control" /> | |
<option <?=(isset($selected_specialty) && $selected_specialty === $value['specialty']) ? 'selected' : ''; ?></option> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment