Please enable $_POST in php.ini

kkimo.rf.gd

(please specify the URL of the site on which you are experiencing the problem)

Error Message

(please share the FULL error message you see, if applicable)

Please enable $_POST in php.ini, or downgrade php version to below 8

thanks

(other information and details relevant to your question)

Welcome!

Where does it say this on your website? It works well for me.

Both POST and GET are enabled, but the rest aren’t. Admin can’t change php.ini for one person, and he won’t revert the PHP version for security reasons.

If having trouble with POST, you can share your code and we can try and debug what could be causing trouble.

9 Likes

while debug via this code…

echo "Username: " . $username . "<br>"; echo "Password: " . $password . "<br>";

the result shows username=
password=
without capturing the details sent

but it i change $_GET instead of $_POST in the login.php file, it captured very well

plz note,
i directly linked to a login.php check file without html form nor method = “POST”.

What are the contents of $username and $password?

Did you happen to set $username and $password to a $_GET variable instead of POST?

6 Likes

The data is getting sent via POST, not GET, so either you provided the wrong URL or you are looking at something different

image
image

Make sure you are using $_POST['user'] and $_POST['pass'] respectively.

Also, never store passwords in plaintext, that is a huge security risk.

4 Likes

In HTML comments are written with <!-- blah blah -->

style.css does not exist

But I really came to tell you
do your best to adequately valid every user input (from the server side) because otherwise you are hacked

Screenshot 2024-11-02 193616

7 Likes

yes…
for example…

in a php login file :-
$username = $_GET[‘username’];
$pass= $_POST[‘pass’];

result for link https://kkimo.rf.gd/Klogin.php?username=k&Pass=k
is :
Username: k
Password:
Successfully login!

my bro… thanks for your advice, this is only a html test page, i will not use anymore

That seems perfectly normal and expected behavior.

POST data is sent along with a request using the POST method and data being sent as the request body. If you just visit a URL, the browser sends a GET request, and the fields in the URL are always mapped to $_GET.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.