Submit Multiple Form Entries To A MySQL Table

I have a form that allows to add more than one entry, the following code inserts the first entry into the database correctly, however if the user wants to add more than one entry in a single form submission the following code will not insert all the form fields entries into the table. I was wondering if there is a foreach statement that is required to do this.

add_action('frm_after_create_entry', 'wp_frm_tasks', 20, 2);

function wp_frm_tasks($entry_id, $form_id){

if($form_id == 14){ //change 4 to the form id of the form to copy

global $wpdb;

$values = array(

'user_id' => $_POST['item_meta'][1140],

'user_id_fe' => $_POST['item_meta'][230],

'profile_start_date_fe' => $_POST['item_meta'][1139],

'display_name_fe' => $_POST['item_meta'][1196],

'email_fe' => $_POST['item_meta'][1197],

'establishment_fe' => $_POST['item_meta'][473],

'rank_fe' => $_POST['item_meta'][474],

'task_name_fe' => $_POST['item_meta'][233],

'flexibility_fe' => $_POST['item_meta'][248],

'task_type_fe' => $_POST['item_meta'][247],

'entry_count_fe' => $_POST['item_meta'][1195],);

//replace 25 and 26 with the field ids of the Formidable form. Change col_name to the column names in your table

$wpdb->insert('wp_frm_tasks', $values);

//change table_name to your table name



Taidot: PHP, SQL

Näytä lisää: in a freelancer website i can t add my credit card to my account then how to add it, http www schwarzwaldreneed a high level management for 2 days meetings 14 15 3gion belchen de en unterkunft, connecting to a mysql database, php, mysql, sql, gathering data mysql table php form, php submit multiple form, javascript email form submit multiple email addresses, inserting records html form mysql table jumi, php dynamic form creataion mysql table, submit multiple form script java javascript, avoid multiple form entries robot, php mysql submit edit form, free form creator mysql table, read table list form php mysql, php mysql table insert form, joomla form mysql table, create mysql table form post, mysql table insert post form

Tietoa työnantajasta:
( 16 arvostelua ) Stafford, United Kingdom

Projektin tunnus: #15134090

21 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


ready to discuss further details Relevant Skills and Experience proven expertise Proposed Milestones £23 GBP - milestone

£23 GBP 1 päivässä
(130 arvostelua)

Hi! I'm interesting your project very well. i mastering PHP and SQL. And also I have many experience and good skill about web and android development. Let's go ahead with me Stay tuned, I'm still working on this pro Lisää

£20 GBP 1 päivässä
(211 arvostelua)

Hello sir, I am a developer with expertise on SQL statements. From your description you appear to be using a dynamic form, so would require a dynamic sql. I will be available to work with you on this. Relevant Skills Lisää

£30 GBP 1 päivässä
(32 arvostelua)

Hi, I have experience with such tasks. Can fix the problem for you. Relevant Skills and Experience SQL Web development Query PHP Proposed Milestones £29 GBP - Code

£29 GBP 1 päivässä
(49 arvostelua)

A proposal has not yet been provided

£15 GBP 1 päivässä
(48 arvostelua)

Hi there! Did go through your Job Description and glad to share that I have experience in working with wordpress platform. Relevant Skills and Experience I also have expertise with Magento,WordPress, PHP, PHP Scripti Lisää

£18 GBP 1 päivässä
(87 arvostelua)

Hello, I will modify the code in order to insert the multiple entry of the form into database. I have lots of experience in wordpress so I can easily handle this project. I am ready to start now. Relevant Skills and E Lisää

£18 GBP 1 päivässä
(46 arvostelua)

Hi..I have gone through your project description and the given code and can help you out in modifying the code for insertion of multiple entries as you require. Relevant Skills and Experience Technically well versed i Lisää

£20 GBP 1 päivässä
(57 arvostelua)

A proposal has not yet been provided

£18 GBP 1 päivässä
(13 arvostelua)

Hello I read your project description and can do the work for you. Please see my work: [login to view URL] Relevant Skills and Experience 10+ years experience in Php, Mysql, Wordpress, HTML, PHP, We Lisää

£13 GBP 1 päivässä
(15 arvostelua)

Hi, I am very much interested in handling the from processing . I am an experienced Wordpress developer

£13 GBP 2 päivässä
(21 arvostelua)

I have a lot of experience in development of project like what you want. If you hire me, I will do my best to develop your project wonderfully in a short time! Relevant Skills and Experience What do you want it,I can Lisää

£18 GBP 1 päivässä
(10 arvostelua)

Hi, I went through the code you mentioned in requirements . i would like to do this task. . Please PM for more details. Thanks, Rakesh Sharma Relevant Skills and Experience php Proposed Milestones £18 GBP - m1

£18 GBP 1 päivässä
(3 arvostelua)

Hi, I am interested to work in your project. Please contact me for the details. Relevant Skills and Experience -5 years of experience in (full-stack)web-development -Bachelor degree in computer science and engineering Lisää

£13 GBP 1 päivässä
(9 arvostelua)

Why you should hire me? Professional project management & experts in managing projects remotely Security coding standard Ability to work in your time zone 24/7/365 availability Relevant Skills and Exper Lisää

£10 GBP 1 päivässä
(8 arvostelua)

A proposal has not yet been provided

£20 GBP 6 päivässä
(6 arvostelua)

Hello Sir, How are you doing? I went through your requirement and Yes I can do. I will be available to discuss in detail. Thank you Rajesh Kumar

£23 GBP 1 päivässä
(2 arvostelua)
£13 GBP 1 päivässä
(0 arvostelua)

Hi, the solution is simple and fast!

£11 GBP 1 päivässä
(0 arvostelua)
£11 GBP 1 päivässä
(0 arvostelua)