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?

  • What is this question about? Upd. Transferred from another question here the beginning of the question. - Sergiks
  • 2
    "so that the page does not shake from the page redirect": D - jekaby
  • Perhaps the author will be able to clarify what it means "Do not shake from the page redirect") - bartezr
  • The problem is that the user, without refreshing the page, immediately saw the received message in the chat from another user - Nikita Popov
  • How to do it ? - Nikita Popov

0