(Sorry, first message was a reply to myself ...)
(darn, again! whats mozilla up to? :-( )
echo <<<END
<form action="$_SERVER['PHP_SELF']" method="POST">
Here You go.
It's the quotes around the $_SERVER array index.
Neither '' nor "" will work.
If you want to use the heredoc syntax, use
<form action="$_SERVER[PHP_SELF]" method="POST">
or just
<form action="$PHP_SELF" method="POST">
rudi