title: image_x image_y on form submit instead of 'value' from 'image'?
body: <p>I try to make a language selection page but when submitting the 'value' parameter of id="image" name="image" doesn't get passed, instead I get image_x and image_y values in $_POST..</p>
  
  <p>This is my code:</p>
  
  <pre><code>session_start();
  
  include("languages.php");
  function lng($which)
  {
      global $ARRXKS;
      return $ARRXKS[$_SESSION['lang']]["$which"];
  }
  
  function LangChoose()
  {
      echo('
          &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
          &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
          &lt;head&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
          &lt;title&gt;Meet-Helmond.nl SMS Service - Select your Language&lt;/title&gt;
          &lt;link href="css.css" rel="stylesheet" type="text/css" /&gt;
          &lt;/head&gt;
  
              &lt;div class="information"&gt;
              &lt;div class="boxinfo"&gt;Cookies MUST be enabled to use this website!&lt;/div&gt;
              &lt;p&gt;
  
              &lt;form id="loginForm" name="loginForm" method="post" action="index.php"&gt;');
              echo('&lt;BR /&gt;');
              print_r($_POST);
              echo('&lt;BR /&gt;');
              global $ARRXKS;
              $LANG_keys = array_keys($ARRXKS);
              $count = 1;
              for ($i = 0; $i &lt;= count($ARRXKS) - 1; $i++)
              {
                  echo('&lt;input type="image" src="images/flags/'.$LANG_keys[$i].'.png" name="image" id="image" value="'.$LANG_keys[$i].'"&gt;');
                  if((($count) % 5) == 0)
                  {
                      echo('&lt;BR /&gt;');
                  }
                  $count = $count + 1;
              }
  
              echo('
              &lt;/form&gt;
  
              &lt;/div&gt;
  
          &lt;body&gt;
  
          &lt;/body&gt;
  
          &lt;/html&gt;
  
      ');
  }
  //print_r($_POST);
  if(!isset($_SESSION['lang']))
  {
      if ($_SERVER['REQUEST_METHOD'] == 'POST')
      {
          if(isset($_POST['image']))
          {
              if (array_key_exists($_POST['image'], $ARRXKS))
              {
                  $_SESSION['lang'] = $_POST['image'];
              }
              else
              {
                  LangChoose();
                  exit();
              }
          }
          else
          {
              LangChoose();
              exit();
          }
      }
      else
      {
          LangChoose();
          exit();
      }
  }
  </code></pre>
  
  <p>so when I retrieve it it doesn't detect which language I chose, how can I correctly submit the value of the clicked image?</p>