thank you @techjewel
i looked on the documentation and i used the following code inside function.php file :
add_action('fluentform_submission_inserted', 'your_custom_after_submission_function', 20, 3);
function your_custom_after_submission_function($entryId, $formData, $form)
{
if($form->id != 5) {
return;
}
global $wpdb;
if (isset($_POST['submitbtn'])) {
global $wpdb;
$GText = $_POST['input_text'];
$wpdb->insert('sg_AdminPage',array('GymName'=>$Gtext));
echo "record inserted";
}
}
i have created blank form in fluentforms contains only text input with name attribute is “input_text” and submit button (the default one), on submission the form is submitted without inserting the value of the text input inside the db. where is the mistake i did ?
can you please help
-
This reply was modified 4 years, 10 months ago by bahadweikat.