when I pass a variable in a url and the variable has a space in it, it causes problems, is there a way to not cause problems with that space.
Example url that causes issues
index.php?city=New York
Example url that does not
index.php?city=riverside
Something kind of like this should do.
<a href="index.php?city=<?php echo urlencode('New York')?>">Go to next Page</a>