hi, I currently have these variable which I want to use in a script.
|-> 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)
when I try to to do something like this:
for ($count=0; $count < $max; $count++)
{
$Firstname[$count] = explode('"',($Fname[$count]);
echo $Firstname[$count][0];
}
it works fine, but if I try to do the same thing for the other arrays in this for loop I get errors. Why won't it work for the rest of them? And, is there a way around it?
Thanks,
Steve