[Help]how to retrieve the data from a multi-selection list?

Vigintennalis Membrum
Vicennium
Joined
Feb 1, 2005
Messages
257
Reaction score
9
i want to make a language selection option for my website, where the user will select the language he/she wants from a list and then the value of that option field is to be stored on a cookie, where afterwards it will be used to check in what language the menu will be printed.(English value=1 , Greek=2.)

Now my problem is that i don't know how to retrieve the value from the multiple selection field.

For example this is my form below :

PHP:
<form name="language" method="post" action="<?php $_SERVER['PHP_SELF']; ?>">
  <select name="select">
    <option value="1">English</option>
    <option value="2">Greek</option>
  </select>
</form>
 
Back