How do you pass variables between PHP scripts using the URL string, that have a "+" in the variable you are passing
echo '<a href="host.com/cart.php?printer='.$selectedPrinter..'">'.$selectedPrinter.'</a>';
If $selectedPrinter is HP 4+
the urlsring turns out to be
http://host.com/cart.php?printer=HP 4+
Tried using urlencode and urldecode but the + sign at the end only shows up in the URL string when I run the
line
echo '"'.$_GET['printer'].'" has been selected.';
in the cart.php file.
I get
"HP 4 " has been selected, instead of "HP 4+" has been selected
Any suggestions?