title: if string begins with "xx" (PHP)
body: <pre><code>if ($_POST['id'] beginsWith "gm") {
  $_SESSION['game']=="gmod"
  }
  if ($_POST['id'] beginsWith "tf2") {
  $_SESSION['game']=="tf2"
  }
  </code></pre>
  
  <p>How to do this so it will work?</p>