Need advice on how to get a button to pull user information.
There is another page within the website that already has the functions I am looking for, but I want to expand those functions to the front page.
The problem I am running into is that when one user is trying to send another user a message I get an error DB Error: constraint violationDB_Error Object, this is caused because the userid of the receiving user isn't present on the front page.
My question is how do I use HTML to grab that information? Do I grab it from the database? If so how do I direct the query to the correct user if the userid is not there? Or do I use the other page that already has the functionality on it? From what I have been able to find, this functionality is within the PHP code, and I cannot bring that over into the HTML page.
If there are any questions that you need to ask to help you understand this please do ask them, I know I am probably not very good at explaining the problem.
Thank you very much for your time, I look forward to any help I can get!