Any body has any idea how to encode a value which has comma(,) or any other special character in javascript and then decode the value in a different php page?
javacript code for send values through url
function search(){
var city_val = $('.city-selection').val();
var venue_val = $('.venue-selection').val()
var function_val = $('.function-selection').val();
var loadpage = "/data/scripts/search_decor.php?city="+city_val+"&venue="+venue_val+"&function="+function_val;
$('#main_content').load(loadpage, function() {});
}
php code for retreiving values from url
$city = $_GET['city'];
$venue = $_GET['venue'];
$function = $_GET['function'];