I need to make up a simple string in PHP which is a string of data to be posted to another site.
The problem is that one of the fields is \'notify_url=..\' and when I u
PHP isn't doing that, it's your browser interpreting HTML entity notation. &
has a special meaning in HTML as the start of an HTML entity, and ¬
happens to be a valid HTML entity. You need to HTML-encode characters with special meanings:
echo htmlspecialchars($string);
// field1=1234&field2=this&notify_url=http