Suljettu

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, 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, create mysql table form data

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

Projektin tunnus: #15134090

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

srinichal

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

£23 GBP 1 päivässä
(129 arvostelua)
7.4
lurdsubas

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ä
(18 arvostelua)
6.2
asadrana91

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ä
(42 arvostelua)
5.9
luminous15

A proposal has not yet been provided

£15 GBP 1 päivässä
(47 arvostelua)
6.1
liangjongai

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ä
(74 arvostelua)
5.6
acecoder84

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)
5.5
mail2vimalarora

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ä
(39 arvostelua)
5.0
helpyourjob

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

£13 GBP 1 päivässä
(13 arvostelua)
4.9
cmitexperts

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ä
(46 arvostelua)
5.0
technoweb7

A proposal has not yet been provided

£18 GBP 1 päivässä
(5 arvostelua)
4.3
JinYongbin

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ä
(3 arvostelua)
3.4
nitin247

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

£13 GBP 2 päivässä
(1 arvostelu)
3.1
rakesh4devop

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ä
(1 arvostelu)
3.0
nbeslie

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)
2.8
ecoderio

I am an experienced professional in this field for about 3 years. I have done so many large scaled and medium scaled PHP MySQL projects. I too have worked with ERP system for diamond industry. I can surely deliver you Lisää

£18 GBP 1 päivässä
(1 arvostelu)
2.4
simrankaurc

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ä
(2 arvostelua)
1.9
AMDigitalS

A proposal has not yet been provided

£20 GBP 6 päivässä
(2 arvostelua)
0.9
shahidabro8

A proposal has not yet been provided

£23 GBP 5 päivässä
(2 arvostelua)
0.5
£13 GBP 1 päivässä
(0 arvostelua)
0.0
desislavivanov0

Hi, the solution is simple and fast!

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