how to pass variable in get without %20 %27 and retrieve back exactly what is passed i tried urlencode and decode but not works need some help
passing in url http://localhost/civilhelp/enquiry.php?cat=%27PLUMBING%20FITTINGS%20&%20SANITARY%20WARE%27 i need to remove %27 %20 used urlencode but no use
retrive only PLUMBING FITTINGS and remaining pls anybody help with a solution
i am passing it as
$cate = 'PLUMBING FITTINGS & SANITARY WARE'; it is from db
<a href="enquiry.php?cat='<?php echo urlencode($cate) ;?>'">
try to retrieve as
$category = urldecode($_GET['cat']);
$category = str_replace("'"," ",$category);
print_r($category);
$category = trim($category);
print_r($category);
it just prints PLUMBING FITTINGS
Am not getting exactly aht i passed Note: I have used urlencode and urldecode also trim
But still i can't Hope what is my problem!!