Forum Moderators: coopster
$postarray = array("bits & bobs","this & that","hen & chicken");print_r($postarray);foreach ($postarray as $value) {$value = str_replace("&", "and", $value);}print_r($postarray);
print_r($postarray);
foreach ($postarray as $value) {$value = str_replace("&", "and", $value);}
$postarray = array("bits & bobs","this & that","hen & chicken");
for ($i=0; $i<(count($postarray)); $i++) { $postarray[$i] = str_replace("&", "and", $postarray[$i]); } echo "<p>"; print_r($postarray);
Give it a try ;) Works fine here ;)
When I use this code with the actual $_POST array, it causes my form to hang and the email to not get sent. Any idea why this might be?