Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

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.

Subscribe https://bit.ly/3nGHmNn

PHP is a backend development language that runs on a server. I suggest installing the XAMPP development server. Here is my guide to getting XAMPP set up: https://youtu.be/btauAEqaifw

Install XAMPP https://www.apachefriends.org/

PHP Sanitize Filters https://www.php.net/manual/en/filter.filters.sanitize.php

This tutorial is part of my PHP and MySQL for Beginners Playlist: https://www.youtube.com/playlist?list=PL0Zuz27SZ-6MeRUt-z60DRxNqcrFAUYIb

(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:
https://www.freecodecamp.org
https://www.theodinproject.com

Follow Me:
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/
Hashnode: https://yesdavidgray.hashnode.dev/
Reddit: https://www.reddit.com/user/DaveOnEleven

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