you can do it by using the array format. First you have to take all the selected values to form an array , you can implement this by giving the checkbox name as an array . By doing this you will get the array of selected check boxes in the name variable. You can also encode the array using Json_encode() before sending to database.
<input type="checkbox" name="checkbox[]" value="One">1<br>
Related Posts:
- 306 MB of wp_options occupied by WordPress SEO Plugin, is that normal? [closed]
- Plugin: register_deactivation_hook works perfectly well, while register_activation_hook suddenly stopped working
- How to display results from a data table with an encrypted user id?
- How to get the custom field value using SQL query
- submit form data to wordpress existing database table using my plugin
- how to search through plugin in wordpress cimy-user-extra-fields?
- Customizing subject in comment notification e-mails
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- How to pass JavaScript variable to PHP in wordpress widget?
- Unable to add admin notice on plugin activation
- How To Ignore a Filter On Applying Filter the Content In a Function
- Saving Plugin settings to the database
- Add CSS animation as Preloader to WordPress
- Errors while using ajax from external wordpress page
- shortcode doesn’t work
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- Deleting images through upload folder, but not deleting from media library
- WordPress plugin installation
- Create or Update thousands of woocommerce products via PHP
- send_headers don’t work on wordpress multisite
- Plugin exceeds memory limit
- Update Option Error: Notice: Undefined index
- How to generate video out of images via WordPress plugin
- How to ‘clone’ a wp plugin to make small changes
- Where should I save an API key of my user when installing my plugin?
- Custom form action to handle data inside a plugin
- Self deactivate plugins after an action occurs
- How to periodically scrape and cache strings from remote txt files. – My First Plugin
- WP Post Template – Templates in own folder
- Avoid class name collision when using third party libraries in plugins?
- Using a custom plugin to capture input data via Ajax and PHP
- Image upload and download from front-end
- How to output CMB2 select options from repeated groups select elements?
- Ajax call returning 0
- How to deal with WordPress and Pocket API to automate content curation on my hosted wordpress blog? [closed]
- WP All Import – Execute Imports
- Conditional attributes and logic per product category
- WordPress get_avatar function not correct working
- Better ads plugin has 500.000 entries in wp_postmeta
- pagination on data fetched using SQL query
- Check if variable is set in filter
- Include a php file from another plugin
- Using ‘mysqli_connect’ ‘crashes’ WordPress client-side
- Add User Role: Pre-saved in User-Meta [SOLVED]
- How to create plugin/ page that reads from database
- How can I fetch data from another website to my wordpress website with mysql database
- Save user total active time after login in wordpress [closed]
- How WordPress core manage the plugin installation
- Switch from wp-cron to a server cron job
- Next Previous Post in wordpress with previous / next link with title?
- Can’t create tables with my plugin
- Apply html elements in php statement
- Check against server time to display SQL entries – Radio Station DJ Rotator Plugin
- WordPress Cache delete on plugin uninstall
- can’t unzip file
- Monitor all the queriers executed by my website
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- How to create admin setting for this small plugin
- Allow a particular user to access a particular plugin?
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- Change plugin descriptions
- How to get database connection details without longing to cpanel in WordPress?
- Problem with checked box on wp car manager plugin
- How can I translate something in my class constructor of my plugin in WordPress?
- Define global variable in theme file and call that variable in plugin file
- update_post_meta is not working for me when I use e.preventDefault for update button
- Store GravityForm data in phpmyadmin (mysql)
- SimpleXML is not working with xml response from external api
- How to use Datatable with Ajax when creating plugin on WordPress?
- Multiple image selection custom widget
- Showing how many times is plugin activated or deactivated
- Login issue in WordPress
- Woocommerce list variations that are added already to cart in Single Product
- WordPress Admin sub-level menu issue
- get/show Last ID
- Plugin communication between sites that use it?
- Passing ajax variable to more than one wordpress plugin function
- Form tries to download a file on submit
- Populate select option with JSON file
- insert multiple entries in database using a loop issue
- Displaying friend’s posts only
- Theme editor removes backslashes
- Create Database Tables on Plugin Activation hook
- Plugin Hook: Get posts
- How to get site homepage from plugin?
- Undefined variable _POST
- How use Dynamic hyperlink on each wordpress post?
- Unable to show 4 products in a row
- How to display blog posts only authored by the administrator
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Function not being called on form submit, only blank admin-post.php page
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- How can I save the selected page in the dropdown after anyone clicks on Save Changes?
- Getting 504 Gateway Timeout Error on AWS Server! [closed]
- WordPress issue – data is not showing in wp-admin, but when searching through database, all the data is there
- WordPress Throwing Deprecated Errors on its own Files
- public custom posts not showing in my wordpress plugin
- plugin doesn’t retrieve data from database