• 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

How to disable widget block editor of WordPress?

Adding reCAPTCHA v2 into my PHP file

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

LARAVEL: How to fetch id dynamically in a query builder?

Symfony Error: "An exception has been thrown during the rendering of a template"

hidden INPUT value not available in $_POST

How to install php yaml on CentOs?

Coinpayments create_transaction "ERROR: Invalid command!"

How can I create a Download Page with post php method?

SendGrid: Sending an email to multiple recipients without other emails being shown on the "to" field

Toggle between a textbox and a select using PHP

Using PHP to connect to a remote MSSQL database

Get WooCommerce products from specific category

Pagekite error: FAIL: localhost:8080 is down

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

About Contact Privacy policy Terms and conditions