diff options
-rw-r--r-- | index.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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> |