You don't have to decode URL encoded values....
If a PHP script is passed some data through GET or POST (i.e. in a form or in the query string) then php will automatically decode that data when the script runs, and the decoded data will be available in the either the $GET or $POST arrays. You shouldn't have to touch that at all.
If you want to check whether data is being passed between scripts, just do this:
print_r($POST); or print_r($GET)
That will show all the data that was passed from the previous script through a form or the query string.
Unless you've fixed up your code too as I mentioned before of course it won't be working anyway. You were still using ASP and not PHP in a lot of spots, esp concerning the Challange variable.
That's most likely your problem.
Take your time...read through the code and make sure it's all correct...
k, good luck man
- Adam 🙂