when I check the error logs I notice that I keep getting this PHP Notice:
PHP Notice: Undefined variable: sent in /var/www/html/survey/index.php on line 48
The undefined variable is simply this below:
<? if($sent) { echo 'survey alerts sent!'; } else { echo ''; } ?>
I include this conditional statement. If survey emails are sent from a previous page I append this to the URL string: index.php?sent=1 which is a redirect to index.php
But I wanted to show the words: "survey alerts sent!"
Am I performing inaccurate php coding with this variable? Is there a better way to do this?
I hope I was clear!
thanks!