JavaScript is required

Phát biểu nào sau đây về $_POST là SAI?

A.

$_POST là một trong số các biến thuộc nhóm Superglobals

B.

Không giới hạn kích thước mặc định của biến

C.

Thông tin giá trị và các biến được gửi từ một form với phương thức POST được nhìn thấy trong đường dẫn URL

D.

Tên của các trường trong form sẽ tự động được chuyển thành khóa trong $_POST

Trả lời:

Đáp án đúng: B


The question asks to find the FALSE statement about $_POST in PHP.

  • $_POST is a superglobal: True. $_POST is a superglobal variable in PHP, meaning it is always available, regardless of scope.
  • There is no default size limit for the variable: True. $_POST has no default size limit; the size limit is usually determined by the web server's configuration (e.g., upload_max_filesize, post_max_size in php.ini).
  • The value information and variables sent from a form with the POST method are visible in the URL path: FALSE. This is a characteristic of the GET method, not POST. With POST, data is sent implicitly in the body of the HTTP request.
  • The names of the fields in the form will automatically be converted into keys in $_POST: True. When a form is submitted using the POST method, the fields in the form will be assigned to the corresponding keys in the $_POST array.

Therefore, the FALSE statement is option 3.

Câu hỏi liên quan