You are here

issue140.php in Zircon Profile 8

File

vendor/behat/mink-browserkit-driver/tests/web-fixtures/issue140.php
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<html>
<body>
<?php

if ($app['request']
  ->isMethod('POST')) {
  $resp = new Symfony\Component\HttpFoundation\Response();
  $cook = new Symfony\Component\HttpFoundation\Cookie('tc', $app['request']->request
    ->get('cookie_value'));
  $resp->headers
    ->setCookie($cook);
}
elseif ($app['request']->query
  ->has('show_value')) {
  echo $app['request']->cookies
    ->get('tc');
  return;
}
?>
    <form method="post">
        <input name="cookie_value">
        <input type="submit" value="Set cookie">
    </form>
</body>