title: Problems with space within parameters of a php function
body: <p>Sorry for not formatting my code. the toolbar was gone...  </p>
  
  <p>I want to insert some data into a mysql db. I've wrote a function in php:</p>
  
  <pre><code>function add_ID($ID, $token)  {
   $add = "INSERT INTO ids (ID, token) VALUES ('$ID', '$token')";
   mysql_query($add);
   echo 'added successfully';
  }  
  if(isset($_GET['addDeviceID'])) {
   add_ID($_GET['ID'], $_GET['token']);
  }
  </code></pre>
  
  <p>In the URL-Field of my Browswe I'am calling the function like that:
  <a href="http://www.justanexample.com/example.php?ID=123123123&amp;token=qwertzuiop" rel="nofollow noreferrer">http://www.justanexample.com/example.php?ID=123123123&amp;token=qwertzuiop</a></p>
  
  <p>That works.</p>
  
  <p>If I put a space into either one of the parameters for example like that:
  <a href="http://www.justanexample.com/example.php?ID=123123" rel="nofollow noreferrer">http://www.justanexample.com/example.php?ID=123123</a> 123&amp;token=qwertzuiop</p>
  
  <p>Nothing was added to my mysql db.</p>
  
  <p>Would be great to get some help :)
  Thank you!</p>