What best practice should be followed when defining the file path in a PHP form action attribute to avoid errors?

When defining the file path in a PHP form action attribute, it is best practice to use the `$_SERVER['DOCUMENT_ROOT']` superglobal variable to ensure the correct path is specified. This helps avoid errors that may occur due to differences in server configurations or file structures.

<form action="<?php echo $_SERVER['DOCUMENT_ROOT'] . '/path/to/your/script.php'; ?>" method="post">
    <!-- form fields here -->
</form>