0
Pls how can I add comment box to a website (pls I need codes)
Comment box
2 Answers
+ 3
Hello, please do the php course first. There you will learn the basics. It isn't just about the simple html box. It's about how to send the user data and so on. My tip: try to do the courses html, php and sql for databases.
For now for the start, here is a simple Code. You can insert it in any html document and open it in your browser.
<form action="/action_page.php">
 Â
  <input type="text" id="fname" placeholder="first name" name="fname"><br><br>
  <input type="text" id="lname" placeholder="last name" name="lname"><br><br>
<input type="text" id="comment" placeholder="comment" name="comment"><br><br>
  <input type="submit" value="send comment">
</form>
+ 1
This is a example which shows live a commentâs support for user input in javascript only:
https://code.sololearn.com/WHl9x8w4dldn/?ref=app