Hello $name.

". "

Raw POST data:

". "
$request->data
"; } else { $welcome = "

Enter your name.

"; } $response->addHeader('Content-type', 'text/html'); $response->body = <<
$welcome EOF; return $response; } /** * Handle a POST request for this resource * @param Request request * @return Response */ function post($request) { if (isset($_POST['name'])) { $name = htmlspecialchars($_POST['name']); } else { $name = ''; } return $this->get($request, $name); } }