Simple Web forms to create an EO object
Simple Web forms to create an EO object
- Subject: Simple Web forms to create an EO object
- From: Amorya North <email@hidden>
- Date: Wed, 4 Aug 2004 15:43:10 +0100
OK, multiple choice. Which is best for a simple form (eg a user
registration form) where one EO object needs to be created.
1. Create and insert the EOObject when the page is loaded. The form is
bound directly to this new EO object. Submit button just saves changes.
2. Page is bound to lots of temporary variables. Submit button creates
EOObject, populates it, and saves changes.
3. Other.
I'm currently trying to do method 1, since it avoids a zillion
temporary variables... but I'm unsure whether it might be less secure
and more likely to end up with a blank record inserted or whatever. My
PHP roots would suggest method 2, as that's _all_ you can do in PHP,
but it strikes me that WO might have a better way.
Amorya
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.