I have an html form contains some inputs. In my PHP function I have some conditions and depended if some inputs are set on or not I call the right function. Here is the example :
if($a)
//Call the function 1
elseif($a == 0)
//Call the function2
if($b)
//Call the function 1
elseif($b == 0)
//Call the function2
So i have two HTML inputs when one of them is setted i call the right function. The problem is when one of them is empty it's still calls the function and in the condition i set == 0 and not !$a
per example. So someone can help me please Thanks.