PHP форма действия

<form name="test" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post">
Dev Arman