i have a captcha similar to yours

something weird its happening, for some reason, its not generating a key from the server

when i display the value of $key it shows empty

how were you able to solve this problem.