if(isset($_POST["seleccion"])==false) { echo "<script>alert('Intenta de nuevo');</script>"; echo "<script>history.go(-1);</script>"; exit; }else{ ...