Well, it's bad practice for at least three reasons: (1) you're using a short open tag, which is deprecated and liable not to work depending on the server; (2) it won't work anyway; (3) the html attribute value isn't enquoted.
Try this:
<form action="<?php echo $_SERVER['PHP_SELF']?>">
// or
echo '<form action="' . $_SERVER['PHP_SELF'] . '">';