Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Comment box

  1. #1
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts

    Comment box

    Hello all,
    I'm not sure how to word this because I'm still new to the HTML scene but I was wondering if there's a way to make a comment box where it leaves a comment on your site as soon as you post it. Kinda like how Facebook does it but I don't need anything that fancy. Also, does the action that submits the comment have to be server-side? And lastly; which script (if any) does it take to make that action happen? For example; does it use PHP, JS, Javascript and does it use MySQL?

    Thank in advance

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,705
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Yes, this kind of functionality is done server-side (e. g. PHP/ASP.NET/JSP) and it requires a database (e. g. MySQL) to store and retreive the comment. I’m not on Facebook but I suppose you mean that when you post a comment it shows it without reloading the page? For this enhanced functionality you also need JavaScript (cue: “AJAX”).

    But this is quite advanced for someone that’s “new to the HTML scene”. Your best bet would be to familiarize yourself with a CMS like Wordpress where such functionality is already built in. Why reinvent the wheel?

  • Users who have thanked VIPStephan for this post:

    zigvab75 (02-27-2012)

  • #3
    Regular Coder
    Join Date
    Sep 2010
    Posts
    331
    Thanks
    9
    Thanked 6 Times in 6 Posts
    Quote Originally Posted by VIPStephan View Post
    Yes, this kind of functionality is done server-side (e. g. PHP/ASP.NET/JSP) and it requires a database (e. g. MySQL) to store and retreive the comment. I’m not on Facebook but I suppose you mean that when you post a comment it shows it without reloading the page? For this enhanced functionality you also need JavaScript (cue: “AJAX”).

    But this is quite advanced for someone that’s “new to the HTML scene”. Your best bet would be to familiarize yourself with a CMS like Wordpress where such functionality is already built in. Why reinvent the wheel?
    In my opinion its not really "advanced for someone that's new to the HTML scene". Excluding the ajax its fairly easy and as long as he knows at least the basics of PHP and mysql he should be able to make a basic comment box.
    Coding is a challenge, get used to it
    Always remember to debug
    Try the guess & check method
    Break it down into simple steps

  • Users who have thanked elitis for this post:

    zigvab75 (02-27-2012)

  • #4
    New Coder
    Join Date
    Feb 2012
    Posts
    41
    Thanks
    31
    Thanked 2 Times in 2 Posts
    Okay, thanks guys. I really appreciate the help. It looks like I may have to familiarize myself with PHP, too. No problem, though. I just like to know how things work so if something goes wrong I can look at the code myself and fix the problem if need be.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •