summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2023-02-13 00:16:32 +0200
committerkartofen <mladenovnasko0@gmail.com>2023-02-13 00:16:32 +0200
commite2642a4025627c8cae644f66b62d8638e9bc2317 (patch)
tree023807d7922d6999cab09e6b81559e36cbe39855
parent1610a267640c8da730a9afe5d8bff3867640e779 (diff)
replace get with postHEADmaster
-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>