Re: order of elements in $_POST super global
| From: | Ben Liu | Date: | Thu, 08 Jun 2006 16:02:17 +0000 |
| Subject: | Re: order of elements in $_POST super global | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237637@lists.php.net to get a copy of this message | ||
Der...of course. Thanks Ron! I knew the answer was simple. :-)
-Ben
On 6/8/06, Ron Clark <ron@armstrong.edu> wrote:
why not create an array with the keys in the order you want ( $array=
array(value1,value2,....). Then loop through the array and use the
values as keys to the $_POST variable and perform your processing that way.
foreach ($array as $value) {
if (isset($_POST[$value]) {
do something;
}
}
--
Ron Clark
System Administrator
Armstrong Atlantic State University