I am having an issue with an echo statement.
I am passing a string with $GET and attempting to print it with echo. The issue is the content in the $GET contains an & and when I echo the string it doesnt print the & or anything after it. For example,
the url which is sending the information is
I have tried just echoing the $_GET['subject']. I have also tried running it through htmlspecialchars(). I have also tried replacing the & with regrex but nothing seems to work.
Whenever I print out the variable it is turned from "Kim & Kanye! Will it last?" into "Kim"
Can anyone figure out why it is doing this?