For example: index.php?color=#c2c2c2
echo $_GET['color'];
This possibly will not work, so how?
URL encode what you send in. #, when url encoded, is %23.
On the receiving side, you just need to do:
$color = urldecode($_GET['color']);
To URL encode in javascript:
var color = encodeURIComponent("#c2c2c2");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With