<script> alert("O enquadramento foi excluido com sucesso."); window.location.href = '../../view/enquadramento.php' </script> <?php } else { ?> <script> alert("Erro ao excluir enquadramento, Informe linha 55."); window.location.href = '../../view/enquadramento.php' </script> <?php } break; case 'update': $retorno = $conEnquadramento->update($idenquadramento, $_GET['descricao']); ?> <script> alert("O enquadramento foi salvo com sucesso."); window.location.href = '../../view/enquadramento.php' </script> <?php } ?> </html>