title: How to Pass a value via href - PHP
body: <p>Am passing a value using href tag</p>
  
  <p>In first page Href tag used as</p>
  
  <pre><code>echo "&lt;a href=view_exp.php?compna=",$compname,"&gt;$compname&lt;/a&gt;";
  </code></pre>
  
  <p>In the Second page used </p>
  
  <pre><code>$compname = $_GET['compna']; 
  </code></pre>
  
  <p>To receive the Compna values are pass but only the first word is passed remaining words are skipped.</p>
  
  <p>Compname as " Chiti Technologies Ltd "
  When I pass the value I receive onlt "Chiti" </p>