charlier - 5:39 am on Sep 16, 2004 (gmt 0)
You are right just change the $URL to $location in the code I posted. The $ thing is just a variable that holds the URL that you are redirecting to, in your case its called 'location'. I just posted it with the variable name I use in my scripts. Sorry for the confusion.