note 46495 added to reserved.variables

From: Date: Wed, 13 Oct 2004 09:14:50 +0000
Subject: note 46495 added to reserved.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-78476@lists.php.net to get a copy of this message
Reading a FORM field without distinction to GET or POST method; $field_name is the name of your FORM field, in string format. Results: the value of the field; NULL if the field doesn't exists. <?php function read_field($field_name) { $field_value = null; if ($field_name>"") { $field_value = $_GET[$field_name]; if ($field_value==null || $field_value=="") $field_value = $_POST[$field_name]; $field_value = stripslashes($field_value); } return $field_value; } ?> ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46495 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46495&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46495&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46495&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46495&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46495&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46495&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46495&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78476) next »