How can the PHP code be adjusted to correctly pass the corresponding file name when clicking on the "Einspielen" or "Löschen" buttons?

The issue can be solved by passing the file name as a parameter in the URL when clicking on the "Einspielen" or "Löschen" buttons. This can be achieved by appending the file name to the URL using GET parameters. In the PHP code, we can retrieve the file name from the GET parameters and use it accordingly.

<?php
// Assuming the file name is stored in a variable called $file_name

echo "<a href='einspielen.php?file=$file_name'><button>Einspielen</button></a>";
echo "<a href='loeschen.php?file=$file_name'><button>Löschen</button></a>";
?>