form redirection and $_POST data

By: ben fiftythree | Asked: 04/19/2024
ForumsCategory: How-toform redirection and $_POST data
ben fiftythree asked 7 months ago
Hi, Upon form submit, I need to retrieve field values through the $_POST php variable. In other words, I know I can achieve this through the "url redirection" form action, by adding url parameters, but I need to do it through post data. Is it possible? :)
Question Tags:
3 Answers
Rob LeVineRob LeVine answered 7 months ago
Please explain your user scenario.
Steve P answered 6 months ago
Ben, I've been looking for the same. In my case, I need to do some calculation based on the user's responses in the form, then determine what message to display what email to send. Custom logic within formidable can't provide what I need here, so I'll need to write my own script to handle this. Any ideas?
Steve P replied 6 months ago

Looking further into this, I think I'll try adding my custom logic via the frm_redirect_url hook, https://formidableforms.com/knowledgebase/frm_redirect_url/#kb-basic-example

Victor Font answered 6 months ago
The PHP $_POST associative array is available in any of the post submit actions and filters. We use it all the time for calculations, API calls, etc. Look in the Knowledgebase in the Extending Formidable Forms section. There are many hooks you can use that include $_POST.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right