PHP Request.QueryString - $_GET with conditions not sure how to
<p>I am not familiar with php and want to write a redirect script using php (The server I am working on does not support asp)</p>

<p>I think it needs to be something like this</p>

<pre><code>&lt;?php if ($_GET[id]; == 'test') {echo '&lt;meta http-equiv="refresh" content="0;URL=http://www.test.com" /&gt;'} ?&gt;
</code></pre>

<p>I want to send a query string like <code>http://www.domain.com?id=test</code> then the page should redirect to <code>http://www.test.com</code> or a query like <code>http://www.domain.com?id=example</code> and it shoud redirect to <code>http://www.theexamplesite.com</code> </p>

<p>Using javascript and classic asp I would have done it like this:</p>

<pre><code>&lt;% if (Request.QueryString("id") == 'test') { %&gt;&lt;meta http-equiv="refresh" content="0;URL=http://www.test.com" /&gt;&lt;% } %&gt;
&lt;% if (Request.QueryString("id") == 'example') { %&gt;&lt;meta http-equiv="refresh" content="0;URL=http://www.theexamplesite.com" /&gt;&lt;% } %&gt;
</code></pre>

<p>Hope you can help me!</p>

<p>Thanks</p>
