I made a chat, but my problem is that the new message is not visible to the user.
Tried to make redirect, but did not find how to transfer a variable. My chat gives the user GET id. I don’t know how to make the new message be seen by the user.
http://192.168.0.100/chat/chat.php?uid=6 When I put redirect, the message appears, but I would like to write a code more intelligently: so that the page does not shake from the redirect of the page.
In addition, I don’t know if you need to transfer the id of the person you are chatting to in the GET url, or is it better to do POST right away so that you don’t write the id in the url for a JavaScript request or jQuery?