Skip to content

Instantly share code, notes, and snippets.

@bosunski
Last active July 15, 2020 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bosunski/76c282d8d4186771dcf7c2363a09c307 to your computer and use it in GitHub Desktop.
Save bosunski/76c282d8d4186771dcf7c2363a09c307 to your computer and use it in GitHub Desktop.
<?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