We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Custom forms, processing scripts

Development and Programming

frosty's avatar
frosty
11 posts
14 years ago
frosty's avatar frosty

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

       
Sue Crocker's avatar
Sue Crocker
26,054 posts
14 years ago
Sue Crocker's avatar Sue Crocker

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?

       
frosty's avatar
frosty
11 posts
14 years ago
frosty's avatar frosty

Hi Sue,

yes, I’m planning to make a form for the end users to update some of the default member fields (+ some custom member fields).

Something like the member area, but much simpler.

       
Brandon Jones's avatar
Brandon Jones
5,500 posts
14 years ago
Brandon Jones's avatar Brandon Jones

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.

       
frosty's avatar
frosty
11 posts
14 years ago
frosty's avatar frosty

Hi Brandon,

I see. I’ll check it out.

Yes, please. Feel free to move the thread. Thanks!

       
frosty's avatar
frosty
11 posts
14 years ago
frosty's avatar frosty

(I also have to mention that the members update form will happen outside the controlpanel)

       
Lisa Wess's avatar
Lisa Wess
20,502 posts
14 years ago
Lisa Wess's avatar Lisa Wess

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. =)

       
frosty's avatar
frosty
11 posts
14 years ago
frosty's avatar frosty

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?

       
frosty's avatar
frosty
11 posts
14 years ago
frosty's avatar frosty

BTW, thanks for the link to the Solspace User Module. It looks quite nice, and I’m probably going to buy it for this project 😊

Though, I would love to know how to go forward on making a custom member edit functionality 😊

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.