GET/POST Data Array in Python?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fazer

    GET/POST Data Array in Python?

    Hello Everyone!

    I am making a simple Pythong CGI script that collects data from a
    form. When the Python CGI Script is called, I wish to gather all the
    POST variables and display all their values. So, I was wondering if
    all the POST data is collected in an array like in PHP where I just go
    through all keys and display their values?

    Thanks,
  • Skip Montanaro

    #2
    Re: GET/POST Data Array in Python?


    faizan> I am making a simple Pythong CGI script that collects data from
    faizan> a form. When the Python CGI Script is called, I wish to gather
    faizan> all the POST variables and display all their values. So, I was
    faizan> wondering if all the POST data is collected in an array like in
    faizan> PHP where I just go through all keys and display their values?

    Sure. For an example, visit:



    and search for "CGI Environment Printer".

    Skip

    Comment

    • Fazer

      #3
      Re: GET/POST Data Array in Python?

      Skip Montanaro <[email protected] > wrote in message news:<mailman.1 059336280.17075 [email protected] >...[color=blue]
      > faizan> I am making a simple Pythong CGI script that collects data from
      > faizan> a form. When the Python CGI Script is called, I wish to gather
      > faizan> all the POST variables and display all their values. So, I was
      > faizan> wondering if all the POST data is collected in an array like in
      > faizan> PHP where I just go through all keys and display their values?
      >
      > Sure. For an example, visit:
      >
      > http://www.musi-cal.com/~skip/python/
      >
      > and search for "CGI Environment Printer".
      >
      > Skip[/color]


      Thanks a lot! It really helped me out!

      Comment

      Working...