Need help with Datatables sending values through POST
- or -
Post a project like this2445
$75
- Posted:
- Proposals: 4
- Remote
- #1660250
- PRE-FUNDED
- Awarded
Description
Experience Level: Intermediate
General information for the website: This is a simple inventory manager and product bundle creator
Description of requirements/features: Goal: To pass item_id numbers as an array from the Datatable on add-items-to-bundle.php to bundleprocessor.php where the item_id numbers are parsed and stored into the tst_bundle_items table
I am not familiar enough with Javascript to figure out what I am doing wrong on add-items-to-bundle.php, and I followed the examples the best I could from the http://datatables.net website.
Ajax Source: https://datatables.net/examples/data_sources/ajax.html (Line 32)
Multiple Item Select: https://datatables.net/extensions/select/examples/initialisation/multi.html (Line 34)
Submit Button: https://datatables.net/reference/option/buttons.buttons.action (Lines 35-48)
I am certain that my datatable Ajax POST parameters are not correct (Lines 40-45 in add-items-to-bundle.php) as the Ajax POST appears to be empty when I click submit.
Then I am not exactly sure what to do on bundleprocessor.php to receive the array and put them into the loop (Lines 20-26) to store into the database.
Please update my code and ZIP back with working solution
Extra notes:
Description of requirements/features: Goal: To pass item_id numbers as an array from the Datatable on add-items-to-bundle.php to bundleprocessor.php where the item_id numbers are parsed and stored into the tst_bundle_items table
I am not familiar enough with Javascript to figure out what I am doing wrong on add-items-to-bundle.php, and I followed the examples the best I could from the http://datatables.net website.
Ajax Source: https://datatables.net/examples/data_sources/ajax.html (Line 32)
Multiple Item Select: https://datatables.net/extensions/select/examples/initialisation/multi.html (Line 34)
Submit Button: https://datatables.net/reference/option/buttons.buttons.action (Lines 35-48)
I am certain that my datatable Ajax POST parameters are not correct (Lines 40-45 in add-items-to-bundle.php) as the Ajax POST appears to be empty when I click submit.
Then I am not exactly sure what to do on bundleprocessor.php to receive the array and put them into the loop (Lines 20-26) to store into the database.
Please update my code and ZIP back with working solution
Extra notes:
Jermaine R.
100% (92)Projects Completed
110
Freelancers worked with
56
Projects awarded
27%
Last project
7 Jan 2020
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies