I have this doubt, I want to make a validation if the condition is met, show me an alert and redirect me to a specific page but since I am working in MVC, I must do it through an action: the code I have is the next:
<script type="text/javascript">
alert("Esto es una alerta");
window.location.href = "archivo.php";
</script>
Where it says file.php I'd like to place an action, I know it's not as simple as replacing the name of the file and placing the action, I guess I should work on pure php. I appreciate any help