check url - hash+salt
<p>I have a doubt about how I can check an URL like this: </p>

<pre><code>http://your.url/set_new_password.php?userid=564979&amp;code=54c4a2767c2f485185ab72cdcf03ab59
</code></pre>

<p>I need to check if the userid exists in the database and if the userid is associated to the hash in the link.</p>

<p>I Read that it is not possible check the url within php. If so, is it possible to solve this problem? I need to verify if the hash and userid present in the link exist in the database.</p>

<p>Any other alternatives?</p>
