RE: [PHP] Re: Are $_POST and $_GET interchangable? MORE

From: Date: Wed, 10 Mar 2004 14:09:53 +0000
Subject: RE: [PHP] Re: Are $_POST and $_GET interchangable? MORE
Groups: php.general 
Request: Send a blank email to php-general+get-180021@lists.php.net to get a copy of this message
[snip] ....stuff.... [/snip] From http://www.w3.org/TR/html4/interact/forms.html#h-17.13.1 17.13.1 Form submission method The method attribute of the FORM element specifies the HTTP method used to send the form to the processing agent. This attribute may take two values: get: With the HTTP "get" method, the form data set is appended to the URI specified by the action attribute (with a question-mark ("?") as separator) and this new URI is sent to the processing agent. post: With the HTTP "post" method, the form data set is included in the body of the form and sent to the processing agent. The "get" method should be used when the form is idempotent (i.e., causes no side-effects). Many database searches have no visible side-effects and make ideal applications for the "get" method. If the service associated with the processing of a form causes side effects (for example, if the form modifies a database or subscription to a service), the "post" method should be used. Note. The "get" method restricts form data set values to ASCII characters. Only the "post" method (with enctype="multipart/form-data") is specified to cover the entire [ISO10646] character set.

« previous php.general (#180021) next »