O'Reilly logo

The Book of JavaScript, 2nd Edition by thau!

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Sending Simple Input to PHP with a GET Request

Server-side programs generally take input from a web browser and use that input to determine what to send back to the browser. For example, with Google Maps, the input might be coordinates on a map, and the output of the server-side program would be a new map. With the Ta-da List To Do list, the input might be a new To Do item to save and the output might be a message saying whether or not the new item was successfully saved.

Input can be sent to a server-side program as part of a GET request or as part of a POST request. A GET request is used when the input you are sending to a server-side program is fairly short, such as sending a coordinate to Google Maps to be mapped. A POST request is typically ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required