$a = $_SERVER['REQUEST_URI'];
echo '<form action="' . $a . '" method="post">';