• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

How to insert data from multiple select dropdown values into database?

php


PHP Snippet 1:

$selection = $_REQUEST['purchase_group'];

PHP Snippet 2:

<select id="purchase_group" name="purchase_group[]" class="form-control" multiple="multiple">

Related Snippets

Exact alternate to mcrypt_encrypt in PHP 7.2

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Insert a DIV after the 6th product only once in WooCommerce category archives

Lumen - Postgresql setup - Composer

Display the default discounted price and percentage on Woocommerce products

Using PHP to connect to a remote MSSQL database

How to remove from a multidimensional array all duplicate elements including the original?

Hide email address with stars (*)

Remove country code from phone number?

Is there a way to correctly use sanitize_text_field and wp_unslash that doesn't cause psalm to error with "expects string, possibly different type"

Add restriction to WooCommerce coupons by allowed user ID

MySQL/PHP - Web Based Game -User specific inventory table or 1 giant table? Another option?

Changing font color in javascript

how to use extended ASCII instead of unicode in PHP

Update Total in checkout of Woocommerce with Ajax Request

About Contact Privacy policy Terms and conditions