PHP » PYTHON |
login |
register |
about
|
|
There is no direct Python equivalent. Different web frameworks have different ways to get `GET` data:
# in Django: def my_view(request): print request.GET # it's a dictionary # ... $_GET$HTTP_GET_VARS [deprecated]$_GET -- $HTTP_GET_VARS [deprecated] — HTTP GET variables DescriptionAn associative array of variables passed to the current script via the HTTP GET method. $HTTP_GET_VARS contains the same initial information, but is not a superglobal. (Note that $HTTP_GET_VARS and $_GET are different variables and that PHP handles them as such) Changelog
Examples
Example #1 $_GET example
<?phpAssuming the user entered http://example.com/?name=Hannes The above example will output something similar to: Hello Hannes!
Notes
|
more
Recently updated
more
Most requested
|