Hi all,
Below I have created an array and need to pass it through a few pages where it will then be split up...
1/ Array Created here...
<select name="ffnumber[]" id="ffnumber" multiple size="10">
2/ In Page2 variable posted...
$ffnumber = $_POST['ffnumber'];
Then set in a form...
<input type="hidden" name="ffnumber[]" value="<?php print_r($ffnumber) ?>" />
3/ On Page3 variable is gain got...
$ffnumber = $_POST['ffnumber'];
then I want to split the array values...
// FORMAT FFNUMBER DETAILS
foreach($ffnumber as $k => $m)
{
echo '<p>'.$k.' => '.$m.'</p>';
// FORMAT FFNUMBER/NAME
list($ffnumber, $surname, $firstname) = split('[/.-]', $m);
$query= "SELECT..."
}
Problem is that the query is performed for the first array value only.
Why is this? Thanks.