0

Show php error nicely in website.

Suppose the username does not exits. So it will throw an error at the time of login. How can I show it nicely in the login page?

27th Apr 2020, 11:42 AM
Avishek Saha
Avishek Saha - avatar
1 Antwort
0
You could expect the error and store the exception as a variable. Then you could decide a proper response text for the specific type of error and print the error response according to the error in the webpage
4th May 2020, 1:31 PM
Ahnaf
Ahnaf - avatar