select multiple php

Solutions on MaxInterview for select multiple php by the best coders in the world

showing results for - "select multiple php"
Emanuele
16 Jan 2017
1// In your HTML:
2<form method="post">
3  <select class="select2" name="listbox[]" multiple="multiple">
4    <option value="One">One</option>
5    <option value="Two">Two</option>
6    <option value="Three">Three</option>
7    <option value="Four">Four</option>
8  </select>
9  <input type="submit" name="btn" value="Get the Records">
10</form>
11
12// In your Javascript (external .js resource or <script> tag):
13$(document).ready(function() {
14  $('.select2').select2();
15});
16
17// In your PHP
18
19<?php
20
21  if (isset($_POST['btn']) && $_SERVER['REQUET_METHOD']==="POST") {
22    $items = $_POST['listbox'];
23    foreach ($items as $item) {
24      // Run SQL Query or do any other action
25      echo $item.'<br>';
26    }
27  }
28  
29?>
Josefa
11 Jan 2021
1<form action="ResultsDulith.php" id="intermediate" name="inputMachine[]" multiple="multiple" method="post">
2    <select id="selectDuration" name="selectDuration[]" multiple="multiple"> 
3        <option value="1 WEEK" >Last 1 Week</option>
4        <option value="2 WEEK" >Last 2 Week </option>
5        <option value="3 WEEK" >Last 3 Week</option>
6         <option value="4 WEEK" >Last 4 Week</option>
7          <option value="5 WEEK" >Last 5 Week</option>
8           <option value="6 WEEK" >Last 6 Week</option>
9    </select>
10     <input type="submit"/> 
11</form>
12
queries leading to this page
select multiple php arraysend multiple select data in database in phpselect multiple options in phphow to store multiple select values in database using phpselect2 selected value phpselect2 multiple in phparray multiple select values in database using phpmulti select phpselect html php multiplephp sql select with multiple tablesselect2 populate multiple phpphp multiple 22 22multiple select query php mysqlmultiple select statements in sql query phphmultiple drop down selection in phparrey multiple select values in database using phpget from multiple select phpselect2 multiple selected values php arraymulti select box in phpselect php two elementsselect multiple selected values php arrayhtml multiple select phpphp select multiple option select data from multiple query phpphp process multiple select how to get multiple data at once in select phphow to select multiple rows in sql phpphp select multiple columnsselect multiple items inphpmultiple select lists phphow to display multi select values in phpselect box multiple selection phpin option how select multiple in phpselect query with multiple where condition in phpselect multiple values from dropdown in phphow return multiple value select phpselect2 php selectedselecting multiple options with checkbox phpselect2 value phphow to do multiple and in php sqlphp sql select multiple rowshow to receive multiple select value in phpreturn multiple value from select php sqlselect2 set selected value multiple in phpmultiple select phphow to select multiple options in phpmultiple select dropdown php mysqlmultiple select function in phpdisplay two elemnt from select phphow to select multiple items phpselect2 multiple selected values phpphp select multiple list boxmultiple select statements in sql query phpdisplay multiple result from select statement phpsql query select with multiple conditions in phpphp multiple selectphp sql select from multiple tableshow to post multiple select option value in phpselect multiple php getmultiple sql query in phphow to multiple select option in phpselect 2 with phpselect multiple phphow do multiple where statements in php sqlchoosing multiple options phpphp multiple select gethow to handle the multi select phpselect multiple html phpmultiple selection dropdown in phpphp select option multiple valueshow to select multiple value details in phpdropdown with multiple selection phpget multiple result from select statement phpselect multiple value phpget values from select multiple phpselect multiple values phphow to get multi select vale in phpmultiple select in phpmultipleselect value in phpphp select multiple values selectedphp mysql multiple select querymultiple select option php mysqlmysql php select multiple rowsphp select multiple array elementsmultiple select in html phptype select multiple phpmultiple selection dropdown phpphp multiple select dropdownphp select multiple rows wherehow to get multiple selected values of select box in phpmultiple selected dropdown in phpselect2 multiple selected values in phpselect multiple php