How could I encode a form using Ninja Forms for WordPress so that is submitted to the server and the server doesn’t block it.

I took a look at:
http://developer.ninjaforms.com/codex/submission-processing-hooks/

and tried this:

add_filter( 'ninja_forms_submit_data', 'my_ninja_forms_submit_data' );
function my_ninja_forms_submit_data( $form_data ) {

  foreach( $form_data[ 'fields' ] as $field ) { // Field settigns, including the field key and value.
   $field = base64_encode($field);
  }

  return $form_data;
}

Is it the right way to do it ?

Read more here: Base64 encode a form with Ninja Forms for WordPress


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: