This gave me fits for a while: when sending data from a form in php, plus signs (+) are automatically converted on the receiving end to spaces
when using urldecode().
I couldn't figure out why that was happening, but it turns out that php does that as a default action.
I was trying to send the email address "firstname.lastname@example.org" and it was showing up as "jan email@example.com
". From the php docs:
"Plus symbols ('+') are decoded to a space character."
I'd prefer they weren't, frankly.