Quantcast
Channel: Active questions tagged feedback+php - Stack Overflow
Viewing all articles
Browse latest Browse all 34

How should I handle site feedback messages (success/errors) to the user in PHP? [closed]

$
0
0

Such as "Username not found", "Problems logging you off", "Logout successful", and so on. Any feedback the website needs to give the user.

I made a class Feedback_Messages, declaring in instance of itself upon running (called in the page header). All messages are stored in a 3D array, according to message type (i.e. error, positive,...). A Get Message function prints out all of the waiting messages (I can make it look fancy when it's done).

Sometimes it works. Before I get into debugging, is this even a good way of doing this, or is there a best practice or available project to manage messages from different class objects to the user? Maybe in session? I'm new to php.

Thanks!


Viewing all articles
Browse latest Browse all 34

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>