Accessing parameters in a script

If I pass in parameters to a script (POST variables) how do I access them in the script?

Are these POST variables URI parameters, or part of the POSTed data? What is the service type that the script is written to be triggered on?

POSTed data, from within a custom script (not triggered from a service).