I have a redirect error
<p>I'm working on a simple login form and i have this redirect URL:</p>

<pre class="lang-html prettyprint-override"><code>&lt;form method="post" action="/incs/login.php?redirect=&lt;?php echo $_SERVER['PHP_SELF'];?&gt;"&gt;
</code></pre>

<p>but when I'm filling the form and hit the submit button I'm redirected to a wrong URL:</p>

<pre class="lang-none prettyprint-override"><code>http://site/incs/login.php?redirect=/admin/index.php
</code></pre>

<p>which it's supposed to be like this:</p>

<pre class="lang-none prettyprint-override"><code>http://site/admin/index.php
</code></pre>

<p>I'm following an old guide and I have looked for this (redirect) function on the internet but I could not find anything. Does this still work now or is it not supported any more?</p>
