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...