Re: forms and dynamic creation and unique field names

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

 



On Thu, April 27, 2006 9:56 am, Jason Gerfen wrote:
> I have come upon a problem and am not sure how to go about resolving
> it.  I have an web form which is generated dynamically from an
> imported
> file and I am not sure how I can loop over the resulting post
> variables
> within the global $_POST array due to the array keys not being
> numeric.
> Any pointers are appreciated.

function array_dump($data){
  if (is_array($data)){
    foreach($data as $key => $value)
      echo "$key: ";
      array_dump($value);
      echo "<br />\n";
    }
  }
  else echo $data;
}

array_dump($_POST);

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
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