Passing values to agent from web page

i have a form that is used as on the web to get a date. Once the user enters the date and clicks the submit button, an agent is called. This is working fine, but I do not know how to pass the value of the date field from on the form to the agent. Right now the date is hard-coded in the agent.

Subject: passing values to agent from web page

Dim Doc as notesdocumentDim session as new notessession

Set doc = session.DocumentContext

DocumentContext will give you the Notesdocument that’s currently selected (ie the one you’ve submitted).

I use it in a few agents called via the web. Works a charm