Files
2026-10-06 12:10:09 +09:00

19 lines
885 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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 の各プロパティの値を出力してください。
*
*/