How to add additional url parameters? I would like to know how I can include additional URL parameters to a given link? ie: 'news?pid=3'

&lt;?php
print $path='news?pid=3';
?&gt;


This returns page not found error as the '?' is getting printed as %3F.
If you are using l(), you would do something like this to create news?pid=3.

l('Link Text', 'news', array('query' =&gt; array('pid' =&gt; '3')));


If you have other query parameters, you can add them in like this:

l('Link Text', 'news', array('query' =&gt; array('pid' =&gt; '3', 'foo' =&gt; 'bar')));


and that would create news?pid=3&amp;foo=bar.

More information on l() here and url() here.