title: Need to pass a variable in anchor tag
body: <p>I am very new to php, I am having a problem passing data from textbox to a php variable to use it in an <em>anchor</em> tag. Below is the code i am using.</p>
  
  <pre><code>&lt;form id="searchform" action="fetchvalues.php" method="get"&gt;
    &lt;input name="q" id="q" type="text" /&gt;
    &lt;input name="searchbutton" id="go" type="submit" value="" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I want to pass value from searchbutton to anchor tag</p>
  
  <pre><code>&lt;a href="http://www.example.com/?q=var" target="_blank"&gt;Hello"&lt;/a&gt;
  </code></pre>