[56K WARN] Comment Form

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
Wogan_Mike
Forum Newbie
Posts: 8
Joined: Wed Feb 28, 2007 3:02 pm

[56K WARN] Comment Form

Post by Wogan_Mike »

I need to make a comment that in the left column of the page is a form where users enter their name and comments and in the right column the posted comments would be listed.

It would look something like this:
Image

Kind of similar to what you see on mySpace®

What is the best/easiest way to achieve this?

Thanks for the help,
Mike W.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You could do it with frames or ajax. Either way you will need to use javascript. Neither is much easier.
(#10850)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm not seeing it require Javascript.. did I miss something?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I guess I was assuming that the whole page was not submitted (@myspace). But feyd is correct, the simplest way would just be to submit the whole page and update the list based on the contents of the form.
(#10850)
Wogan_Mike
Forum Newbie
Posts: 8
Joined: Wed Feb 28, 2007 3:02 pm

Post by Wogan_Mike »

Thanks for the info. Does anyone know where I can find I tutorial or something to show me how to do this? I have 0 knowledge of Ajax or PHP.

Thanks,
Mike W.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

phpclasses.org for code or freshmeat.net for a myspace type application would be two places to start.
(#10850)
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

No way do you need AJAX and I strongly advise against it. This seems to me to be a client side question and so I suggest somebody moves it there - unless I'm missing something; you are asking about how to achieve that layout of elements, right?
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

ole wrote:No way do you need AJAX and I strongly advise against it.
It's Ajax if you want to save the comment in a database and also do not want to refresh the page between submitting the form and redisplaying the list.
(#10850)
Post Reply