Re: Foreach

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

 



On 1/17/08, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote:

> >  $name = $_POST['name'];
> >  if ($name) {
> >  foreach ($name as $t) {
> >
> >        echo "$t";
> >    }

> >    $order = $_POST['order'];
> >    if ($order) {
> >    foreach ($order as $i) {

>
> there are a few different issues here; first of all; are you sure
> $_POST['name']
> and $_POST['order'] are even arrays?

hint:

if(isset($_POST['name']) && is_array($_POST['name']))

:)

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