Loading video...
Script Input & The GET Method
- There are three basic ways a user can provide input to a PHP script: the HTTP GET method, the HTTP POST method, and Cookies.
- These methods provide input to a script via pairs of strings, known as name/value pairs .
- The HTTP GET method provides input to a script by appending name/value pairs to a destination script’s URL.
- HTML forms are composed of a set of input controls that each represent a name/value pair to be sent to a script upon the form's submission.
- The HTML <form> tag is used to declare an HTML form. It has two key attributes: action and method .
- Query strings are name/value pairs appended to a URL after a question mark. Each name and value are separated by an equals sign, and each name/value pair are separated by an ampersand sign.
- URLs have specific syntax rules so query strings added to URLs must be encoded to follow those rules. This is known as URL Encoding .
- urlencode() is a built-in PHP function used to properly encode URL query strings.
- Additional Resources:
Script Input & The GET Method
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

































Start Learning Now
Our free lessons will get you started (Flash® 10 required).
Sign up for Educator.comGet immediate access to our entire library.
Features Overview