if (isset($_POST['ver'])) { echo 'VER'; } elseif ( ! empty($_POST['opcion'])) { echo 'OPCION: ' . $_POST['opcion']; }