Php chat : how to set sender and receiver msg independent | Sololearn: Learn to code for FREE!
0

Php chat : how to set sender and receiver msg independent

In a chat popup, if a I send a msg, msg as to be display and the receiver's msg has to be displayed. Looking for source code in it. Ok. Here, inside a chat box conversation of sender and receiver will be displayed consecutively. Like whatsapp, Facebook. So, my question is, how to bring both sender and receiver 's conversation inside the box with div tag or using css. Also how to fetch the last sender's and receiver's text respective to right and left side in chat box. Whereas sender's text aligned to righ

28th Mar 2017, 12:14 PM
Mansoor Ali
Mansoor Ali - avatar
1 Answer
0
If you want to sent the msg and show it on his side without having him to reload the page, you should look into AJAX. If you need further help, please be more specific in your question , it isn't very clear. Regards, Lumpi
28th Mar 2017, 12:34 PM
Lumpenstein
Lumpenstein - avatar