1
I have a form that every time it is given post, it is giving error by lack of parameter. I would like to give Insert only when someone clicks on the insert button (hand on the drawing). I thought to disable the button to enable only when it is filled but do not know how to proceed.
https://gist.github.com/FabricioYwin/2b0483e25b030a0be54037751af78e89
but how do I exbible that alert? Can I use bootstrap Alert?
– fabricio_wm
Yeah, you can use it. I do so: if (isset($_POST['variavel_x'])){ /if the variable exists, that is if there is any content, if it was filled, or in the case of the button, if it was clicked; }
– Maicon Herverton
You can. On the page you check if there is a variable
$error
. If yes, you show.– Diego Souza