What's the best way (is there any way?) of returning a value to a PHP page from a CGI script?
I have a PHP page which includes a form which calls a CGI script. When the CGI script has finished I want it to return a value back to the original PHP page, so that I can update the PHP page. The CGI script is a third party script which normally writes its own HTML - but I want to modify it so that it doesn't do this but instead returns me a value which I can then act on to modify my own page as appropriate.
Is this possible? If so how? Can I have a form in the CGI script which is automatically submitted using javascript submit() and sends the results to the PHP page? Or will this not work?
All help and ideas appreciated
Thanks