public function __construct() { parent::__construct(); isSessionExist(); $this->user_id = $_SESSION['user_id']; $this->ujian_id = $this->config->item('ujian_id'); }
public function __construct() { parent::__construct(); isSessionExist(); $this->user_id = $_SESSION['user_id']; $this->ujian_id = $this->config->item('ujian_id'); setCssPreHeader(base_url() . 'assets/css/kofein-custom.css'); }
if (isSessionExist('user_id')) { unset($_SESSION['user_id']); } if (isSessionExist('user_name')) { unset($_SESSION['user_name']); } if (isSessionExist('user_email')) { unset($_SESSION['user_email']); } if (isSessionExist('user_password')) { unset($_SESSION['user_password']); } if (isSessionExist('user_age')) { unset($_SESSION['user_age']); } if (isSessionExist('user_gender')) { unset($_SESSION['user_gender']); } if (isSessionExist('user_profile')) { unset($_SESSION['user_profile']); } if (isSessionExist('user_profile_photo')) { unset($_SESSION['user_profile_photo']); } if (isSessionExist('user_profile_backgroud')) { unset($_SESSION['user_profile_backgroud']); } // todo sessionに値を保存、main_controller.phpに遷移 header('HTTP/1.1 303 See Other'); header('Location: http://localhost/utwitter/htdocs/main_controller.php'); exit;
} ?> > 女<input type="radio" name="user_gender" value="1" <?php if (isSessionExist('user_gender') && $_SESSION['user_gender'] === '1') { ?> checked <?php } ?> > <br>プロフィール <textarea name="user_profile" rows="5" cols="40" ><?php if (isSessionExist('user_profile')) { echo $_SESSION['user_profile']; } ?> </textarea><br> プロフィール画像:<input type="file" name="user_profile_photo[]"><br> 背景画像:<input type="file" name="user_profile_photo[]"><br> <div class="registration_bottom"> <a href="index.php">戻る</a> <input type="submit" value="登録確認画面へ"> </div> </form> </div> </body> </html>