note 28268 added to tutorial.forms
| From: | brock at csh dot rit dot edu | Date: | Tue, 07 Jan 2003 23:44:29 +0000 |
| Subject: | note 28268 added to tutorial.forms | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41803@lists.php.net to get a copy of this message | ||
Or, instead of changing the form's method, you could change
if($_GET['action']=="submit"){
to
if($_POST['action']=="submit"){
You just need to make sure that the form method and the variable ($_GET, $_POST) are the same.
Using GET will append the variables to the URL - ie, http://www.site.com/index.php?action-submit
Using POST will not display the variables and they're values like this.
--
http://www.php.net/manual/en/tutorial.forms.php
http://master.php.net/manage/user-notes.php?action=edit+28268
http://master.php.net/manage/user-notes.php?action=delete+28268
http://master.php.net/manage/user-notes.php?action=reject+28268