⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Store form field value to a variable in the controller



sarp

sarp
  • profile picture
  • Member

Posted 28 April 2021 - 07:50 AM

Hi all,

I am struggling trying to pass a crud filed value to a variable in the controller in order to use it later.

 

Example

 

$crud->add_fields(['surname','name','email']);

 

The user adds the values to the form and I want to get the email value to send a verification email when the user submits data.

 

How can I get the value of the email field to a variable in order to use it to the function that sends the email?

 

Thank you