Skip to Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
298
Chapter 5
Once a web server gets a POST request, it gures out what type of data it has received,
and then passes that information on to the program in the request URL.
Web servers unencode POST data
<?php
require(‘lib.php’);
function go() {
$myVar = ...
return ...
}
?>
Break Neck server
placeOrder.php
placeOrder.php
phone=(214) 290-8762
address=Mary Jenkins
7081 Teakwood #24C
Dallas, Texas 75182
order=1 Large Cheese Pizza
1 order of Breadsticks
1 2-liter bottle of Diet Coke
The server opens up
the POST request,
and decodes the
request data...
...which, for Break
Neck, is the customer’s
information and order...
...and passes the data on
to the program in the
original request URL.
Since this is a POST request, there’s no
data in the actual request URL.
The server takes care of
taking the data from the
request, and turning it
into something a server-
side program can use.
unencoding post data
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content