my block allow to login with any text inserted even the data are not correct (not from mysql). then, my block allow to go to next page even the login are incorrect.
Friend , Your open screen block is inside the else. The else works when you have no return = 200. Return = 200 is when everything is ok. So the Open Screen block must be in the part where “everything went right In the PHP”(not exactly that, but) script, you are not dealing with whether the return of Select is ok or not.
Debug your script. Place a print_r (variable) and a die () underneath and check what is going on.
POST != Get
There are many errors.
check what you get in response content when you fill write username and password. Suppose for example you got in response content ‘success’
then use it like this
if response code = 200
then = if response content contains text = success
then = next screen
else = show alert (invalid username or password)
else = show alert (invalid username or password)
The reason is as per your block, you are not checking/verifying user details with SQL details… just your are asking users to enter username and password. So whatever they input it will store in the SQL server alsolso next screen opening