I can access the parameters if the form submitted or hidden from the following snippet.

form = cgi.FieldStorage()

But I can't access the variables from URL. EX:- .../daniex.py?TYPE=R1

How can I get "TYPE" variable's value from python web lib?

The obvious response is to find "TYPE=" in the string, but that is so obvious that I must not understand exactly what you are asking.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.