Jump to content

need guidance on writing a comment box

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Tooke

Tooke

    Newbie

  • Members
  • Pip
  • 8 posts
I've been building a blog/home page from scratch. What's the preffered way to implement a a simple comment box? My initial thought was a form + javascript, but I read somewhere that you have to use a language that executes on the server so comments can be saved. A few places mentioned php, mysql, something about databases, etc. I've found Html Comment Box - Website Comment Box Code that I'm planning on picking apart to see if I can learn anything.

So how do I go about this? I don't have any experience with javascript, php, etc., the extent of my web development knowledge is the website (jacobobryant.zzl.org). However, the whole point of building it is for me to get experience, so I don't care if I have to learn a fair amount.

Thanks in advance!

#2
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
If you want to learn, then yes PHP and MySQL would be fine.

If you just want a comment box, you could use Facebook to integrate it.

https://developers.f...ugins/comments/

If you want to make the database you might set it up to have a table with a few columns "id", "name", "comment", "created", and "approved".

Then just setup a forum that allows them to enter in their name and a comment. Default created to NOW() and approved to 0. When displaying comments only show their comments and approved comments (approved=1). Then a moderation back-end should be easy for such a small task.

#3
Tooke

Tooke

    Newbie

  • Members
  • Pip
  • 8 posts
ok, thanks. Looks like I'll be going the php/mysql route. I'm looking forward to getting in to web development :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users