Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

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.

Computer Science: Introduction to PHP