PHP + vmail.cgi + single sign on

Hi All,
I’m trying to make use of the already existing code and add the vmail.cgi to a few PHP pages. Attached is my php code, making use of the virtual("…/cgi-bin/vmail.cgi") function which calls the CGI script from within PHP.

This displays the login page just fine.

The problem is that I can’t log in using the form.

The next step is that I want to use my credentials from PHP to call the correct methods of the CGI script, in essence a single sign on for the other things I have going on in my PHP pages.

Here is the PHP code:
any help is greatly appreciated :smile:

include "utils.php";
	echo navigation($variables);
        echo '