Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

261
Visualizações
How to show results of one webpage made by php in another html webpage?

I wanted to list all the files of a local directory in a stylist format. I found out this solution online:

https://css-tricks.com/snippets/php/display-styled-directory-contents/

I used Apache server using Xampp and its working fine.

And now I want to display this result in an html page something like this (ignore header row of the table):

enter image description here

My html page has navigation tabs and one tab will show this table of all the files.

Till now I have tried two solutions:

  1. Anchor tag: Its opening new tab hence not useful.

  2. tag: Which is giving window to see the files as in below image:

enter image description here

But I want my files in same page in particular navigation tab.

So my question is, how to add one htmlf+php file with navigation tab of a webpage?

Below is sample code (not including js,css and php) to show where and how I am using tag and where I can use new solution.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div class="tab">
        <button class="tablinks" onclick="opentab(event, 'upload')" id="defaultOpen">File Upload</button>
        <button class="tablinks" onclick="opentab(event, 'report')">Reports</button>
        <button class="tablinks" onclick="opentab(event, 'insight')">Insight Engine</button>
      </div>

      <div id="report" class="tabcontent">
        <h1>Hit refresh to see all the available files</h1>
        <iframe src="http://localhost:8080/final/uploads" width="100%" height="200px"></iframe>
      </div>
</body>
</html>

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda