Here some description goes.....

>

HTML Forms (GET and POST)
When a form is submitted to a PHP script, any variables from that form will be automatically made
available to the script by PHP. For instance, consider the following form:
Example : Simple form variable

   1: <form action="foo.php3" method="post">
   2: Name: <input type="text" name="name"><br>
   3: <input type="submit">
   4: </form>


When submitted, PHP will create the variable $name, which will will contain whatever what entered into the Name: field on the form. PHP also understands arrays in the context of form variables, but only in one dimension. You may, for example, group related variables together, or use this feature to retrieve values from a multiple select input:
Example : More complex form variables


   1: <form action="array.html" method="post">
   2: Name: <input type="text" name="personal[name]"><br>
   3: Email: <input type="text" name="personal[email]"><br>
   4: Beer: <br>
   5: <select multiple name="beer[]">
   6: <option value="warthog">Warthog
   7: <option value="guinness">Guinness
   8: </select>
   9: <input type="submit">
  10: </form>

If PHP’s track_vars feature is turned on, either by the track_vars configuration setting or the
<?php_track_vars?> directive, then variables submitted via the POST or GET methods will also be
found in the global associative arrays $HTTP_POST_VARS and $HTTP_GET_VARS as appropriate.

Leave a Reply