PHP passing parameters via URL
<p>I want to know how I can pass parameters between pages through the URL without having to add variables eg:</p>

<pre><code>mydomain.com/file.php?var1=val1&amp;var2=val2&amp;...varN=valN
</code></pre>

<p>I want to use it as follows:</p>

<pre><code>mydomain.com/file.php?val1-val2-...-valN
</code></pre>

<p>I also see in some website the URL is in the following format</p>

<pre><code>mydomain.com/file/####
</code></pre>

<p>which redirects to another page without changing the URL as if this is the URL to the file.</p>
