How can inputs be used directly in PHP without the need for JavaScript?

To use inputs directly in PHP without the need for JavaScript, you can submit a form to a PHP script that processes the input data. Within the PHP script, you can access the input values using the $_POST or $_GET superglobals, depending on the form submission method (POST or GET).

<form method="post" action="process_form.php">
    <input type="text" name="username">
    <input type="password" name="password">
    <button type="submit">Submit</button>
</form>
```

In the "process_form.php" script, you can access the input values like this:

```php
$username = $_POST['username'];
$password = $_POST['password'];

// Process the input values as needed