This is because you are using =
insted of ==
=
Sets the variable value.
==
Check if it value is equal to another value.
Pergunta
I am passing a value through a form submission and then echo'ing the result (echo $_POST["value"];
) onto the page in multiple places as a "test."
As I am doing this, I noticed that after my IF statement, the $_POST["value"]
stops returning its value and I believe it is returning NULL.
The IF statement checks to see if the $_POST["value"] = NULL
Any reason for this?
Does $_POST only work once (or a limited number of times) before its "used up" or is there some other function that clears this value?
Solução
This is because you are using =
insted of ==
=
Sets the variable value.
==
Check if it value is equal to another value.
Outras dicas
its
$_POST["value"] == NULL
not $_POST["value"] = NULL