Predefined Variables

Fred Atkinson fatkinson at mishmash.com
Sun Aug 2 23:20:02 CEST 2009


On Sun, 02 Aug 2009 08:11:22 -0700, Scott David Daniels
<Scott.Daniels at Acm.Org> wrote:

>Piet van Oostrum wrote:
>>>>>>> Scott David Daniels <Scott.Daniels at Acm.Org> (SDD) wrote:
>>> SDD> Stephen Cuppett (should have written in this order):
>>>>> "Fred Atkinson" <fatkinson at mishmash.com> wrote ...
>>>>>> Is there a pre-defined variable that returns the GET line...
>>>>> os.environment('QUERY_STRING')
>>> SDD> Maybe you mean:
>>> SDD>     os.environ['USER']
>> Let's take the best of both:
>> os.environ['QUERY_STRING']
>
>Sorry about that.  I was testing expression before posting, and I don't
>do that much cgi stuff.  I forgot to restore the variable name.
>
>--Scott David Daniels
>Scott.Daniels at Acm.Org

	I finally got it to work with x =getenv('QUERY_STRING')

	Regards, 



						Fred 



More information about the Python-list mailing list