I use wordpress and unfortunately, I have to work behind the backend. I need to print message about user action while the CMS header has been sent.
Is there any alternative than using javascript? I prefer a PHP solution.
echo '<script type="text/javascript">/* <![CDATA[ */';
echo 'window.location.href = "'. $redirect_url . '";';
echo '/* ]]> */</script>';
You can pass the message by using query string:
And use swich to show the message based on value of
msgquery string var: