Amol Davkhar Amol Davkhar - 1 year ago 92
PHP Question

Meaning of the ?act=Submit

$("#fm-form").attr("action", "<?php print $this->Url; ?>index.php/general/geography/?act=Submit");

here fm-form is form id and this line of code is from .phtml file(Zend-Framework)

Can somebody explain me what is "?act=submit"

Answer Source

This is GET Method. GET is an associative array of variables passed to the current script via the URL parameters.


The GET method sends the encoded user information appended to the page request. The page and the encoded information are separated by the ? character.

For example

We have this URL


  1. The GET method produces a long string that appears in your server logs, in the browser's Location: box.

  2. The GET method is restricted to send upto 1024 characters only.

  3. Never use GET method if you have password or other sensitive information to be sent to the server.

  4. GET can't be used to send binary data, like images or word documents, to the server.

  5. The data sent by GET method can be accessed using QUERY_STRING environment variable.

  6. The PHP provides $_GET associative array to access all the sent information using GET method.


Update 1

In your situation, ?act=Submit could be technique to check form is submitting or not.