How can hidden input fields be used as an alternative to passing variables in a form action in PHP?

When passing variables in a form action in PHP, the URL can become cluttered and expose sensitive information. To address this issue, hidden input fields can be used to securely pass variables within the form itself without displaying them in the URL.

```php
<form action="process.php" method="post">
    <input type="hidden" name="variable1" value="value1">
    <input type="hidden" name="variable2" value="value2">
    <!-- Other form fields here -->
    <button type="submit">Submit</button>
</form>
```

In the example above, two hidden input fields are used to pass variables "variable1" and "variable2" to the "process.php" script when the form is submitted. These variables can then be accessed in the PHP script using the $_POST superglobal.