PHP The post.php File
At the brief minute, we have POST data being sent to the post.php register each time the consumer submits the form and delivers a new message. Our goal now is to grab this data and write it into our chat log.
We need to start the post.php before we do anything file with the session_start() function as we’ll be utilising the session regarding the user’s title in this file.
Utilising the isset b lean, we verify that the session for ’name‘ exists before doing whatever else. We now grab the POST data which was being provided for this file by jQuery. We shop this information to the $text variable. Weiterlesen