Reputation: 28853
How can I show a message when say something is deleted and it appends a query string on the end of a url when it redirects so for example: domain.com/?favor_trashed=294
and it would then show a message like:
<p>Favor has been successfully deleted</p>
Upvotes: 1
Views: 356
Reputation: 164970
Have a look into the Flash Messenger design pattern, the most common implementation being the one in the Zend Framework - Zend_Controller_Action_Helper_FlashMessenger
The basic idea is
Upvotes: 6
Reputation: 522510
<?php if (!empty($_GET['favor_trashed'])) : ?>
<p>Favor has been successfully deleted</p>
<?php endif; ?>
Upvotes: 5