Hello,
what is the “normal” way of creating scripts for processing custom forms?
Ex. if I make a custom edit form for each member to update their personalia… should I just make a new template (with PHP allowed) that processing the POST request?
Is there a way of making a controller that keeps a lot of methods for different methods? More like a CodeIgniter way of doing things?
Thanks in advance
Hi, frosty.
There is no normal way per se.. It depends on what you want to do with the forms.
For instance, we have SafeCracker which will allow for updating entries in the database.
Freeform from Solspace is for forms that are saved to a table outside of the EE general tables.
We do have methods for allowing end users to update their member templates, but their pretty light weight. Is that what you’re looking to change up?
Hi frosty,
A custom module would be the way to go. We can’t specifically support custom code but I can move this over to Development and Programming for you if you’d like.
Hi, frosty -
You know there are built-in forms for members to update their details on the front-end? For instance at;
http://example.com/index.php/member/profile
You can also use Solspace’s User Module if you want more control over those templates through the primary template parser.
Both are for front-end updating.
I’ll move this down to Dev & Programming as requested, but you probably shouldn’t need totally custom in this case. =)
Hi Lisa!
Yes, I’m aware of those 😊
But I’m about to build some custom member area in a template group named “account”, where the index is just a view of the member’s data, than ex. the url http://domain.com/account/edit is where the form to update the member data is. (I’m only going to let the users update a few fields: email, phone, address etc.)
So my main question is how it’s “normally” done. Can for instance a safecracker form update member data, or just plain channels like blog, news and others I create?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.