if(isset($_POST["value1"]) && $_POST["value1"] != ""
&& isset($_POST["value2"]) && $_POST["value2"] != ""
&& isset($_POST["value3"]) && $_POST["value3"] != "") {
}
I send text type data using ajax and in the backend I've to validate like this. Is there any other better way to do that?