QAds
12 Ay Taksit
Coby MP305-2G MP3 Player
$8.95
Apple iPad 64gb Wi-Fi
$447.59
Sony VAIO VPC-CW21FX/P Laptop
$426.71
Canon Digital Rebel XT 8MP Digital SLR Camera with EF-S 18-55mm f3.5-5.6 Lens
$175.34
:: HOME » PHP » Using Multi Select
 
Using Multi Select

If you want to use multi select option with PHP you need to use arrays:

HTML file :

<select name="select[]" size="5" multiple="true">

    options here

</select>

 

PHP file :

<?PHP

$select = $_POST['select'];

if(is_array($select))

{

    foreach($select as $option) {

       echo $option;

    }

}


PHP Using Multi Select PHP Using Multi Select PHP Using Multi Select
PHP Using Multi Select
NEW QUESTION
 
Your E-Mail Address
»
Your e-mail will never be shown!  
   
 
Question
»
Please type your question and please use [CODE] tag for your codes!  
  Add CODE Quote BOLD ITALIC Underline Align Left Align Center Align Right Add Line  
   
 
Human Check
»
Enter human check code below!  
   
 
       
 
* Your Question will be answered as soon as possible, probably within 24 hours!
PHP Using Multi Select PHP Using Multi Select PHP Using Multi Select
PHP Using Multi Select
 
Website Designer, Search Engine Optimization Expert, Ajax Developer,Developed And Designed By Mumin Celik With Using PHP, MySQL, CSS, JavaScript, Ajax And Search Engine Optimizer Sinema ve Film Rehberi Sudoku Oyunu