PHP: How to Get Data from a Request | PHP get and post form methods

preview_player
Показать описание

This PHP tutorial will show you how to get data from a request. We will look at examples of PHP get and post request methods to send and receive data using HTML forms. You will learn how to get data from an HTTP request and store it in PHP variables.

(0:00) Intro
(0:24) Start Apache in the XAMPP control panel
(0:58) Inspecting the HTML Form
(1:07) PHP Server Variable: PHP_SELF
(2:44) Overriding the HTML form method
(3:26) The difference between GET and POST requests
(5:57) Viewing the $_GET and $_POST arrays
(9:12) htmlspecialschars() built-in function
(10:25) Applying a filter_input() to sanitize data
(13:15) empty() built-in function
(15:10) isset() built-in function

📺 Learn Web Dev at these sites:

✅ Follow Me:

Was this PHP tutorial about how to get data from a request using get and post methods helpful? If so, please share. Let me know your thoughts in the comments.

#php #get #post
Рекомендации по теме