note 84457 added to reserved.variables.post

From: Date: Tue, 15 Jul 2008 08:06:25 +0000
Subject: note 84457 added to reserved.variables.post
Groups: php.notes 
Request: Send a blank email to php-notes+get-141514@lists.php.net to get a copy of this message
Make sure your submit buttons (ie. <input type="submit"> etc) have a 'value' attribute. If they don't, the value won't appear in $_POST and so isset($_POST["submit"]) won't work either. Example: <input type="submit" name="submit"> isset($_POST["submit"]) returns false <input type="submit" name="submit" value="Next"> isset($_POST["submit"]) returns true. This might seem obvious for text buttons since they need a label anyway. However, if you are using image buttons, it might not occur to you that you need to set a value attribute as well. For example, the value attribute is required in the following element if you want to be able to detect it in your script. <input type="image" name="submit" src="next.gif" value="Next"> ---- Server IP: 69.147.83.197 Probable Submitter: 121.72.242.206 (proxied: 121.72.242.206) ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.post.php Edit -- https://master.php.net/note/edit/84457 Del: integrated -- https://master.php.net/note/delete/84457/integrated Del: useless -- https://master.php.net/note/delete/84457/useless Del: bad code -- https://master.php.net/note/delete/84457/bad+code Del: spam -- https://master.php.net/note/delete/84457/spam Del: non-english -- https://master.php.net/note/delete/84457/non-english Del: in docs -- https://master.php.net/note/delete/84457/in+docs Del: other reasons-- https://master.php.net/note/delete/84457 Reject -- https://master.php.net/note/reject/84457 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141514) next »