PHP FIX IssuesCategory: QuestionsDisplay alert message and redirect after click on accept
buck96 asked 50 years ago

Well, I have a page with links to reports. Whenever somebody clicks on one report, they can download the excel file. However, sometimes there are no fields to make a report; in that case, I want to display an alert message and after they click on “accept”, they get redirected to the main panel. When they click on the report, they go to a controller that uses a switch to get the data.

1 Answers
Laxmi Kant answered 5 years ago
echo "<script>
alert('There are no fields to generate a report');
window.location.href='admin/ahm/panel';
</script>";

Author - comments - 0

Copyright © 2014 - Designed by Jolly Themes