Just check if variable has been set
1 2 3 4 5 6 7 |
if (!empty($item4)) { echo "Yes, ITEM FOUND"; }else{ echo "N0, NOT FOUND"; } |
1 2 3 4 5 6 7 8 9 |
<?php if (isset($_POST["statsx"]) && !empty($_POST["statsx"])) { echo "Yes, var is set"; }else{ echo "N0, var is not set"; } ?> |