simple post design using html and css , using javascript to attach event on input field ,then send request to php file that put data in DB after validating the post request .mean while calling another function to put the new data in comment section using DOM ,there are some logic like if the input field empty,desplay all the data that returned from xhr request or the last one ,using procedure to prevent sql injection