Hi all,
Can anyone tell me where i might be going wrong. I'm not getting any areas, just not echoing the results.
$total_spec_types = 2;
for ($i = 1; $i < $total_spec_types; $i++)
{
preg_match_all("!#(.*?)#!is", $_POST['allgenre_$i'], $matches);
if(trim($matches[1][0]) != "")
{
$genre_id = trim($matches[1][0]);
} else
{
$genre_id = "blank";
}
}
foreach ( $matches[1] as $genre_id ){
echo $genre_id . "<br>";
}
Cheers,
micmac