Submit Multiple Form Entries To A MySQL Table
£10-20 GBP
S-au achitat serviciile după ce au fost prestate
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
}
}
ID Proiect: #15134090
Detalii despre proiect
19 freelanceri plasează o ofertă medie de 18£ pentru proiect
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 Mai multe
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 Mai multe
ready to discuss further details Relevant Skills and Experience proven expertise Proposed Milestones £23 GBP - milestone
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
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 Mai multe
Hi, I am very much interested in handling the from processing . I am an experienced Wordpress developer
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 Mai multe
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
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
i have good experience in PHP. i need to increase my reviews. The amount is negotiable. Relevant Skills and Experience i have good experience in PHP. i need to increase my reviews. The amount is negotiable. Proposed Mai multe