I hope you aren't on any time crunches because what you want to do is not
simple, not really.

You need to post the form information to a php or cgi page which will then
do data validation and strip out anything that might be harmful to the
database or the system.  You then need to store the information into the
database and finally return the user to the page they posted from.

Those of us who do it day in and day out can do it in our sleep, so we often
forget that actually doing it for the first time is rather difficult and can
be complicated.

I would suggest forgetting the prototype part for now and concentrate on
getting the form posted normally, saved to the database safely and displayed
safely before trying to get fancy AJAX integration going on.

but thats just my two cents


On Sun, Jan 27, 2008 at 1:04 PM, atisz <[EMAIL PROTECTED]> wrote:

>
> Hi guys,
>
>
> I'm working on a web site and I have to make possible for users to
> post comments about the photos from the photo gallery. I need just 2
> things: name and comment. I've seen a nice HTML site with such a
> thing, and looking for the used tehnique I discovered prototype.js. As
> JS is something new for me, I didn't understand much about it, even
> after reading the prototype.js documentation. I also searched the net
> for some tutorials, sample applications but I didn't found anything to
> help me in this.
> I suppose it's something very basic thing, since the found sample
> applications were so complex ones.
> Can someone explain me what do I need to do? And especially, how? Do I
> need for what I have to do, SQL database, some PHP, or just simple
> HTML with prototype.js .
> Any help is welcome and verrrrrrrrrrrrrrrry appreciated.
>
> Thanks, Attila
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to