Re: Foreach

From: Date: Thu, 17 Jan 2008 23:26:03 +0000
Subject: Re: Foreach
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-267520@lists.php.net to get a copy of this message
On 1/17/08, Nathan Nobbe <quickshiftin@gmail.com> 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'])) :)

« previous php.general (#267520) next »