This is really bugging me...I have a place where people can add their company name to my database. I also send them an activation link (with the company name in the link) in order to cut down on fraudulent submissions. My problem is everything works fine until someone has a company with an amperstand in the name (A & B). The activation page does not find the entry in the database even though it is there.
I have tried using different combinations of str_replace() and htmlspecialchars() on both the 'activation' page and the 'insertdata' page, but nothing works. The activation page only sees up until the amperstand (A) instead of (A & B). What do I do?
I have tried using different combinations of str_replace() and htmlspecialchars() on both the 'activation' page and the 'insertdata' page, but nothing works. The activation page only sees up until the amperstand (A) instead of (A & B). What do I do?