Hi,
I have the following issue.
I am passing a checkbox values to array and adding commas to separate the values. Then I am removing the last comma from the string. The problem is that the $cityid never shows more than one value. For some reason the foreach loop does not get propageded into the echo $cityid = substr_replace ($city_ids,"",-1);
Any ideas? Thanks. Roman
<?
$city_id = $_POST["city_id"];
foreach ($city_id as $value)
{
echo $city_ids = ''.$value.',';
}
echo $cityid = substr_replace ($city_ids,"",-1);
?>