You can pass many types of information to an agent via CGI. It is not that difficult. Of course you are limited to how much data you can pass, due to limitations of CGI itself, but if the data or information being sent is minimal, you are set.
You’ll need to download an example db from my codes db for the stuff you need. Please reference the WebStandAlone agent for the information you need. Also, please note that in each of these function in the WebStandAlone agent they reference the CGI as a document. This can be found in the Script Library.