PHP : echo message for a specified amount of time

前端 未结 6 2163
暗喜
暗喜 2021-01-23 09:34

I want to display a string \"Your status has been posted\" for something around 3 or so seconds than I want it to go away.

As of right now I have a news feed where the u

6条回答
  •  春和景丽
    2021-01-23 10:28

    I'd use AJAX for that. You can assure yourself that the data has been well inserted into the DB, and then show the message with javascript for amount the time you want.

提交回复
热议问题