Accepting User Data6:48 with Alena Holligan
In this video we'll cover differences between the GET and POST methods, then filter the POSTED user data to make sure it's in the expected format.
filter_input Gets a specific external variable by name and optionally filters it.
Max url length: Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters. Internet Explorer also has a maximum path length of 2,048 characters.
header() is used to send a raw HTTP header, such as a redirect. Remember that header() must be called before any actual output is sent, either by normal HTML tags, blank lines in a file, or from PHP. It is a very common error to read code with include, or require, functions, or another file access function, and have spaces or empty lines that are output before header() is called. The same problem exists when using a single PHP/HTML file
You need to sign up for Treehouse in order to download course files.Sign up