After using the code below all spaces changed to +
and all ,
to %252C
.
<select name="country" id="country" onchange="action='<?php
echo '/index.php' ?>';submit();return false;">
I need to change spaces to -
and keep ,
unchanged. and this is function to execute country values.
function list_es($type, $country) {
global $countries, $l, $lang;
if($type=="dropdown") {
// echo '<option value = "">- Select -</option>';
foreach($countries as $country1) {
echo '<option value="'. $country1.'"';
echo $country1 == $l ? 'selected="selected"' : '';
echo '>'.$country1.'</option>';
echo "
";
}