Comment Box??

Discussion in 'Web Design and Development' started by John444, Jul 6, 2011.

  1. John444 macrumors member

    Joined:
    Feb 10, 2011
    #1
    Hey everyone, I have been looking for a long time how to create a simple comment box in html. I want it to work like this: once submitted it will post the comment, that the user wrote in an html form, on the webpage for any other person to see who goes to this webpage. I guess it would kinda be like the wall on facebook. I have come to an understanding that I will have to link an html form (which I know how to make, I have lots of experience in html and javascript) with some php. I have no idea how to work php.

    Could someone please post code for this comment box and explain how html form connects with php?

    This would help a lot, Thanks!
     
  2. designguy79 macrumors 6502

    Joined:
    Sep 24, 2009
    Location:
    Michigan
    #2
    You will need to store the comments somewhere, usually in a database like MySQL. Or a plain text file could work, but I would only recommend that if you can't use MySQL or sqlite.

    Here is a good PHP/MySQL tutorial:

    http://www.freewebmasterhelp.com/tutorials/phpmysql

    Have fun!
     
  3. Consultant macrumors G5

    Consultant

    Joined:
    Jun 27, 2007
    #3
    You should look into using a CMS such as wordpress
     

Share This Page