summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/index.php b/index.php
index 2bb8de8..b3a7a85 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,5 @@
<?php
- $ARGS = $_GET;
+ $ARGS = $_POST;
if(count($ARGS) == 0) {
$ARGS = json_decode($_COOKIE["tasks"], true);
@@ -25,7 +25,7 @@
</style>
</head>
<body>
- <form action="index.php" method="get">
+ <form action="index.php" method="post">
<?php
$tasks = $ARGS["tasks"] ?? "0";
@@ -76,7 +76,7 @@
echo "<input type=\"hidden\" name=\"tasks\" value=\"". $tasks ."\">";
?>
</form>
- <form action="index.php" method="get">
+ <form action="index.php" method="post">
<button type="submit" name="clear" value="t">Delete Everything</button>
</form>
</body>