Hi,
i don`t really like to exchange error messages via the URL, if it is
numeric or not. Best thing is to keep the URI clean. For the future i want
to exchange even the 'cmd' parameter via post method only.
Also adding new error codes is not very comfortable.
So what to do with error messages!?
- we want them to be displayed above the content
- we want them to be configurable (color etc.)
- we want multilanguage support
- we want no more parameters in URI
- we want it to be secure, so that no one could place html-code
- we want to be able to display more than one error message
- maybe we want to log errors with IP, username and error message
Solution?
We should have a function, that is called with an error code. It should
handel translation, displaying and logging.
I don't have a perfect idea right now, any suggestions??
Brian
At 01:37 06.08.2002 +0300, you wrote:
>2) global $msg_codes array. This array has the numeric value for messages
>that would be passed between files. It would be easier to send plain text
>but it is not "secure" because someone could put HTML in it.
|