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
you’re on your way 4
305
post requests
Frank and Jim are onto something. Remember when we talked about the server
decoding the POST data from your request? Once the server opens up the POST
request data, it doesn’t know what type of data it should expect... and servers really
don’t like mysteries. Let’s take a look, and see what happens with the POST data:
The mysterious POST data
<?php
require(‘lib.php’);
function go() {
$myVar = ...
return ...
}
?>
Break Neck server
placeOrder.php
placeOrder.php
?
The server has no idea what
type of data is in this
POST request... is it an
image? text? XML?
Since the server doesn’t know what
kind of data it has, it doesn’t know
how to pass that information on to
the placeOrder.php script.
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