Printing a variable in PHP does not work
<p>I've got this piece of code:</p>

<pre><code>&lt;?php
  $userid = $me['id'];
  function showifuserexists() {
?&gt;
&lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
&lt;body&gt;
  &lt;a href="file.php?element1=aaa&amp;userid=&lt;?php print $userid; ?&gt;"&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;?php
} 
?&gt;
</code></pre>

<p>For some reason I can't get the php <code>$userid</code> to show up in the html link. I've tried <code>echo</code> too. Help?</p>
