Array ( [ac] => detail [id] => 1 [mod] => product )
Link 1
Link 2
Link 3
Link 4


<fieldset>
<legend>Form 1</legend>
<form action="lab5.1_nc.php" method="post">
    Nhập x: <input type="text" name="x" value="<?php echo isset($_POST['x']) ? $_POST['x'] : '1'?>"><br>
    Nhập y: <input type="text" name="y" value="<?php echo isset($_POST['y']) ? $_POST['y'] : '2'?>"><br>
    Nhập z: <input type="text" name="z" value="<?php echo isset($_POST['z']) ? htmlspecialchars($_POST['z']) : '3'?>"><br>
    <input type="submit" value="Submit">
    <!-- Sử dụng htmlspecialchars() để hạn chế tấn công XSS từ người dùng.
        Ví dụ:  1. nhập mã <b style="color: red;">1</b> vào textbox
                2. nhập <script>alert("XSS")</script>  vào textbox -->
</form>
</fieldset>
Form 2
Nhập x1:
Nhập x2:
Nhập y:
Form 3
Nhập tên:
Giới tính: Nam Nữ
Sở thích: Thể thao Du lịch Game