Creating a dynamic URL in node--resource.tpl.php I'm trying to create a URL in my node--resource.tpl.php file that contains fields from the resource in question in the URL. The following code is what I've been playing with, but when the user clicks the link it just shows as follows:

http://pf.dev/content/specific-resource-feedback?nid=&amp;title=


Ie. The nid and title are not being filled out correctly. So here's the code I'm using (incorrectly) to create the URL:

    &lt;div class="feedback-link"&gt;
    &lt;a href="/content/specific-resource-feedback?nid=
&lt;?php $content['nid']) ?&gt;&amp;title= &lt;?php $content['title']) ?&gt;"&gt;
Trouble with this resource? Let us know.&lt;/a&gt;
    &lt;/div&gt;


Any ideas why this might not be working as intended?
The title is defined for a node.tpl.php file as $title, and the node id can be retrieved with: &lt;?php print $node-&gt;nid; ?&gt;  therefore, it should read something like this:

&lt;div class="feedback-link"&gt;
  &lt;a href="/content/specific-resource-feedback?nid=&lt;?php print $node-&gt;nid; ?&gt;&amp;title= &lt;?php print $title; ?&gt;"&gt;
  Trouble with this resource? Let us know.&lt;/a&gt;
&lt;/div&gt;