Ernst-ludwig Bohnen wrote:
On Sun, 3 Apr 2005, Andy Ball wrote:
Hello,
How do I read an environment variable from my gpc Pascal program? This should enable me to accept data input via a form on the Web.
Try predefined function GetEnv in unit gpc.pas: function GetEnv (const EnvVar: String): TString; Ernst-Ludwig
I might be entirely wrong here. But I seem to recall you are working on CGI programming.
My guess is "Environment Variable" means different things when referring to shell programs such as bash or tcsh, or when referring to httpd programs such as Apache.
It might be worth checking out the ParamStr function.