]>
src.bluestatic.org Git - bugdar.git/blob - docs/mycookies.php
3 if (empty($_REQUEST['do']))
5 echo "<form name=\"cookies\" action=\"mycookies.php\" method=\"post\">\r";
6 echo "<input type=\"hidden\" name=\"do\" value=\"go\" />\r";
7 echo '<table border="1" cellspacing="2" cellpadding="3">';
8 echo "\r<tr><td><strong>Name</strong></td><td><strong>Value</strong></td><td><strong>Del</strong></td></tr>";
10 foreach ($_COOKIE AS $varname => $value)
12 echo "\r<tr><td>" . $varname . '</td><td>' . $value . '</td><td><input type="checkbox" name="del[' . $varname . ']" value="' . $varname . '" /></tr>';
17 echo "\r<br />\r<input type=\"submit\" name=\"submit\" value=\"Delete Cookies\" /></form>";
21 foreach ($_POST['del'] AS $remove)
23 setcookie($remove, '', time() - (2 * 900), '/');
26 header("Location: mycookies.php");