On Jan 28, 4:13 am, "Brian Williams" <[EMAIL PROTECTED]> wrote:
> 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.
I'll second that.
Once you have it working as a standard form, and have all the back-end
sorted, you can add the AJAX stuff. That way you can program the
dynamic part knowing that at any point you can revert to the default
behaviour and it will still work.
--
Rob
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---