Hello,
I am posting numbers.
the name = number for all names = ...and the value = different numbers eg...fx1005 or dx33 or sx9
the fx, dx, sx is just added to the number and it tells me what to do with the value when I get it
here is the code I wrote to get the values back:
$numbers_received = array();
$numsA = array();
$counter = 0;
$numbers_received = $_POST['number'];
foreach($numbers_received as $value) {
$numsA[$counter] = "$value";
$counter = $counter + 1;
}
and now to look at what I received..
echo $numsA[4];
I get this error in the log: invalid argument supplied foreach()
It leads me to believe that what was posted was not an array. Is this true?
Is there a way for me to do this?
This was just a test sending 10 numbers and I had hoped that it would echo a result..it did not
I can do this a long way but, using perl reasoning fIigured something like this could be done in php too.. with fewer keystrokes
I'm new to php so don't laugh.
Andrew