Hi,
I have an online email function, when you open inbox.php, it runs a function, check_mail, which grabs all the email from my 3 accounts, and displays them hotmail style. You can then tick a check box to delte an email. When you delete something, it sets $feedback to something like "deleted email 1 from account 3". However it then uses Header("Location: http://www.domain.com/email/inbox.php"); to open the inbox again, and doesn't display the $feedback.
I did have it before, without the header location code, but then when you pressed refresh, to check the mail again, it asked if you wanted to repost the date, from the delete function, as it was a form. Which is why I got it to open the url again.
How can I get it to display the $feedback message, after deleting, when it opens the inbox.php again. I tried adding global $feeback to both the delete_mail function, and check_mail function.
Ben