Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-24-2012, 04:56 PM   PM User | #1
zigvab75
New Coder

 
Join Date: Feb 2012
Posts: 41
Thanks: 31
Thanked 2 Times in 2 Posts
zigvab75 is an unknown quantity at this point
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
zigvab75 is offline   Reply With Quote
Old 02-24-2012, 10:45 PM   PM User | #2
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,613
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
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?
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Users who have thanked VIPStephan for this post:
zigvab75 (02-27-2012)
Old 02-24-2012, 11:06 PM   PM User | #3
elitis
Regular Coder

 
Join Date: Sep 2010
Posts: 319
Thanks: 9
Thanked 6 Times in 6 Posts
elitis is an unknown quantity at this point
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
elitis is offline   Reply With Quote
Users who have thanked elitis for this post:
zigvab75 (02-27-2012)
Old 02-27-2012, 04:18 PM   PM User | #4
zigvab75
New Coder

 
Join Date: Feb 2012
Posts: 41
Thanks: 31
Thanked 2 Times in 2 Posts
zigvab75 is an unknown quantity at this point
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.
zigvab75 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:04 AM.


Advertisement
Log in to turn off these ads.