when I try to pass my array it seems like the variables are there but I can't call them.
when I used this script:
function parray($array,$prep = '') {
$prep = "$prep|";
while(list($key,$val) = each($array)) {
$type = gettype($val);
if(is_array($val)) {
$line = "-+ $key ($type)\n";
$line .= parray($val,"$prep ");
} else {
$line = "-> $key = \"$val\" ($type)\n";
}
$ret .= $prep.$line;
}
return $ret;
}
echo "<pre>";
echo parray($HTTP_POST_VARS);
echo "</pre>";
i get:
|-> Username = "" (string)
|-> Disabled = "on" (string)
|-> max = "3" (string)
|-> submit = "Submit" (string)
|-+ Fname (array)
| |-> 0 = "Steve" (string)
| |-> 1 = "Steve" (string)
| |-> 2 = "Steve" (string)
|-+ Lname (array)
| |-> 0 = "Subsignup" (string)
| |-> 1 = "test" (string)
| |-> 2 = "test" (string)
|-+ Email (array)
| |-> 0 = "steve@supracore.com" (string)
| |-> 1 = "steve@supracore.com" (string)
| |-> 2 = "steve@supracore.com" (string)
|-+ Country (array)
| |-> 0 = "JM" (string)
| |-> 1 = "HT" (string)
| |-> 2 = "HT" (string)
|-+ Username (array)
| |-> 0 = "jimmy" (string)
| |-> 1 = "j" (string)
| |-> 2 = "spanky" (string)
|-+ _Disabled (array)
| |-> 0 = "" (string)
| |-> 1 = "" (string)
| |-> 2 = "" (string)
but when I try to call something like:
for ($count=0; $count < $max; $count++)
{
echo $info[$count][0];
}
nothing happens. Can anyone explain this to me?
Steve