I have a shortcut where an email is embedded along with a code like this.
In most cases this works, except like the above case where there is a plus (+) sign in the email. I have written the following code that works, but I am curious if there is a better way. I am using PHP to process this.
$val = $_GET['e'];
if (strstr($val, "@")) $e = str_replace(" ", "+", $val);
else $e = $val;
Can you either confirm this is a good way to go or suggest an alternative.