Forum Moderators: coopster

Message Too Old, No Replies

Catch the URL

         

sqlnew

7:25 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



I need use the URL as the key for one of my table, how can I catch the URL of the page the user visiting? Which variable of $_SERVER should I use?

Thanks.

jatar_k

10:22 pm on Oct 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



there are a bunch

try this and see which form works for you

echo '<pre>';
print_r($_SERVER);
echo '</pre>';

sqlnew

11:11 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



Thank you very much. Now I know how to get the URL by combining some of the variables.
Thanks again.