I ran the script through a cgi script checker and cgi monitor and it checks out fine.
It just seems to me, (Not A Programmer), that the cgi can't read the ap_securitycode.
I read in another post that the ap_securitycode was going to be sent encrypted, and that your program would have to decrypt it.
Is it possible that is the problem?
If so, do you know a perl script for decrypting.