The excel files has multiple tabs (sheets)
I would like to display a specific sheet or a way to navigate between sheets using a form submit button.
include 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet;
$file = 'Excel Files/Book1.xlsx';
$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
$excel = $reader->load($file);
$writer = IOFactory::createWriter($excel, 'Html');
$message = $writer->save('php://output');
echo $message;