I created an HTML document with a form with 7 fields to be processed in a PHP script, like this:
if (empty($_POST["grupo"])) {
die("El grupo terapéutico es requerido");
}
if (empty($_POST["principio"])) {
die("El principio activo es requerido");
}
if (empty($_POST["concentracion"])) {
die("La concentracion del producto es requerida);
}
if (empty($_POST["forma"])) {
die("La forma farmaceutica es requerida");
}
Up to:
if (empty($_POST["concentracion"])) {
die("La concentracion del producto es requerida);
}
Everything looks as expected, the if has a violet color and the empty function is blue colored but the next one has a green color. When I run the the HTML and the PHP script this last statement is not even processed.
Also there is a comment below that after putting it among /* and */ should get a gray color but it is all green like the last sentence I mentioned above.
So this is not working, I wonder what may be wrong?
Thank you.