no message
This commit is contained in:
18
Question10-class/Ex03.php
Normal file
18
Question10-class/Ex03.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* [Ex03 オブジェクト指向 クラスの活用 - POSTによるUserクラスの利用]
|
||||
*
|
||||
* TODO:
|
||||
* 1. 既に作成した User クラス(User.php)を利用します。
|
||||
* 2. require_onceを使い、User.php を読み込んでください。
|
||||
* 3. 前画面からPOSTで送信された以下のデータを、それぞれ変数に格納してください。
|
||||
* - ユーザID(数字):キー "user_id"
|
||||
* - ユーザ名:キー "user_name"
|
||||
* - メールアドレス:キー "mail"
|
||||
* - パスワード:キー "password"
|
||||
* 4. 変数 $us を宣言し、User クラスのインスタンスを生成して代入してください。
|
||||
* 5. 取得した各値を、$us の各プロパティ(user_id, user_name, mail, password)に代入してください。
|
||||
* 6. 最後に、$us の各プロパティの値を出力してください。
|
||||
*
|
||||
*/
|
||||
Reference in New Issue
Block a user