Data handling summary

Nearly everyone will find that it is best to stick with the default settings and use the superglobals - not only is it the recommended way, but it is also the most secure, and will guarantee your code will work on other machines without the need to edit the php.ini file.

Nevertheless, it is important to have a good understanding of what other code is out there in the wild - there are usually several methods to accomplish the same task in PHP, so you should be ready for anything!

 

Want to learn PHP 7?

Hacking with PHP has been fully updated for PHP 7, and is now available as a downloadable PDF. Get over 1200 pages of hands-on PHP learning today!

If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!

Next chapter: Handling our form >>

Previous chapter: Magic quotes

Jump to:

 

Home: Table of Contents

Copyright ©2015 Paul Hudson. Follow me: @twostraws.