Posted by Angelos on 12/15/05 12:53
Hello,
I would like to develop an independent class that will store Messages,
Warnings and Errors.
Messages and Warnings Will be displayed to the user.
Errors will be loged in a database or/and emailed to the admin.
The part that Interests me at the moment is the messages that will be
displayed to the user.
What is the best practice of doing such a thing ?
Is it correct to store them in a $_SESSION ?
The reason I would like to do that class is because at the moment I
execute a Database Query and then I want to redirect and then display
the message: Succesfull or Not. Otherwise I'll get headers already sent.
Do you know how I can overcome this problem and if what I am thinking is
correct ?
Thanks
Angelos.
Navigation:
[Reply to this message]
|