note 28199 added to tutorial.forms
| From: | JohnD717 at hotmail dot com | Date: | Sun, 05 Jan 2003 23:12:07 +0000 |
| Subject: | note 28199 added to tutorial.forms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41702@lists.php.net to get a copy of this message | ||
GET and POST methods:
The Get and Post methods in a form is the way the information is passed to the processing script. In
php these are simply put into $_GET['<name>'] or $_POST['<name>']
however in other languages, like perl/cgi, it is handled differently. if you are writing a genaric
form for any processor, i recommend post. It is not only easier in languages that handle them
differently, but in PHP, POST is the assumed method by more script writers. Also, in PHP, $_GET is
used for the query string as well, and you dont want to end up having duplicate names in the query
string and the form.
--
http://www.php.net/manual/en/tutorial.forms.php
http://master.php.net/manage/user-notes.php?action=edit+28199
http://master.php.net/manage/user-notes.php?action=delete+28199
http://master.php.net/manage/user-notes.php?action=reject+28199