How can I pass a variable that contains a hash tag via a website URL? I currently pass this information into the URL, but cannot echo it out on the new page because '#' is used to anchor/jump to a specific page area.
Can I tell it to ignore the hash tag and echo what follows it?
Current url:
http://localhost/social3/search/?searchTerm=#JustKeepGoing
Current way to echo content:
$searchTerm = $_GET["searchTerm"];
echo $searchTerm;
You have to url encode it :
http://host.com/social3/search/?searchTerm=%23JustKeepGoing
Not sure your browser won't interpret it, but worth trying.