To Do
All tasks on display here
General Advice
- Do not repeat yourself unnecessarily. That is, repeat if it makes things clearer, otherwise don't do it. Write a function, include code etc.
- There are only 4 cases, 0, 1, 2 and many. Sometimes there are only 3 cases, 0,1 and many.
- If code becomes complex. Stop and simplify it.
- Appropriate conventions sometimes make things easier.
Advice about this application
- The switching of the GUI could be improved.
- I have added some structure to login.php, see if you can use some similar structure in your code.
Including comments at the start.
- Only data is communicated between the html and the php.
- You can improve the error handling on the php side, especially the format of the error messages.
Just sending back a long string does not seem that useful.
- You can improve the communication from javascript to the server, in case the messages
become more complex than a few parameters.