Comment box | Sololearn: Learn to code for FREE!

0

Comment box

WHAT IS THE CODE TO CREATE A COMMENT BOX FOR A WEBSITE?

4/27/2020 9:39:04 AM

Eashan Wantu

2 Answers

New Answer

+1

That we won't give you ,show your attempt and put your efforts and then come up with any specific query regarding that

+1

There's no specific code for that ^^ Neither as semantical html5 tag nor than front-end / back-end coding, as there could be differents ways wich relie among other things on wich server side language and framework you're using... Roughly, the principle is less or more to handle a <textarea> content with JS with AJAX request to store user post (comment) in a database on server side... once the update is confirmed, you can update the page content with the new created post (on user side, still with JS, obviously, or alternatively by refreshing the page with the server response to the submited post if you want to avoid XMLHttpRequest stuff coming with AJAX requests).