Re: order of elements in $_POST super global

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Der...of course. Thanks Ron! I knew the answer was simple. :-)

-Ben

On 6/8/06, Ron Clark <ron@xxxxxxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux