So my question is:
If I don't write anything in an input
<input type="text" name="test">
in a simple form with post method, when I receive the $_POST
array in my action url, the $_POST["test"]
exists as empty string ($_POST["test"] => ""
).
So I can't use null coalesce because $var = $_POST["test"] ?? 'default';
because it is always $var = "";
(as is normal).
Any way to solve this problem?