title: Wordpress: Use method="post" for multiple language selection
body: <p>I'm building a website that has dual languages with two flags as an entry page. I'm planning on using <code>&lt;form method="post"&gt;</code> around the flags so the user can select the language they want.</p>
  
  <p>Then on the following pages I want to use something like:</p>
  
  <pre><code>&lt;?php
  if( $_POST['language']=='uk' ){
      echo $uk;
  }elseif( $_POST['language']=='french' ){
      echo $french;}
  ?&gt;
  </code></pre>
  
  <p>So on clicking the flag, they have selected the language they want. Will that only work on the next page after they have clicked the flag or can they carry on navigating to different pages and it still pick up what language was selected?</p>
  
  <p>If that doesn't work, how else can it be done?</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I don't think I made it clear before that I'm using Wordpress, which apparently doesn't like <code>$_SESSION</code>.</p>
  
  <p>I have this on a template called region.php to submit the language selection:</p>
  
  <pre><code>    &lt;form action="&lt;?php the_permalink(); ?&gt;/home" name="region" method="post"&gt;              
          &lt;div id="uk"&gt;
              &lt;a href="javascript:document.region.submit()" name="UK"&gt;
                  &lt;img style="margin-bottom:10px;" src="&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/-uk.png" width="259" height="160" alt="UK" /&gt;
              &lt;/a&gt;
              &lt;h1 style="color:black!IMPORTANT;"&gt;Enter United Kingdom site&lt;/h1&gt;
          &lt;/div&gt;
  
          &lt;div id="world"&gt;
              &lt;a href="javascript:document.region.submit()" name="World"&gt;
                  &lt;img style="margin-bottom:10px;" src="&lt;?php bloginfo('stylesheet_directory'); ?&gt;/images/
  world.png" width="258" height="160" alt="
  Rest of the World" /&gt;
              &lt;/a&gt;
              &lt;h1 style="color:black!IMPORTANT;"&gt;Enter Rest of the World site&lt;/h1&gt;                    
              &lt;/div&gt;  
      &lt;/form&gt;
  </code></pre>
  
  <p>What do I need to put on every other template to check what language was selected? To help with the example if UK has been selected then it can just echo "UK", if the rest of the world was selected then it can just show "World".</p>
  
  <p><strong>This needs to work across several pages so if they goto the about page it checks the language, then if they navigate to the contact page it checks the language again - all that has to come from the initial language selection.</strong></p>