• Networking: The investigation is still on the way, we've switched to backup telecom carriers since the episode but we're still working in settling everything as it must be. We'll add more updates as we have them available. Incoming and outgoing emails will be restricted, and user registration has been disabled until the issue is resolved.

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

Experienced Elementalist
Joined
Feb 1, 2005
Messages
257
Reaction score
9
Location
Nicosia
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