Mam taką stronę:
[PHP] pobierz, plaintext
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <link rel="stylesheet" href="style.css" type="text/css" />
- <body text="#CCCCCC">
- <center><h1>Micki Portfolio</h1></center>
- <div align="right">
- <form action="" method="POST">
- Nick: <input type="text" name="login">
- Hasło: <input type="password" name="haslo">
- <input type="submit" value="Zaloguj"></div>
- </form>
- <hr noshade="noshade" />
- <center>
- <?php
- include('./'.$_GET['plik']);
- ?>
- </center>
- </body>
- </head>
- </html>
chodzi mi o includowanie, chce by jeżeli nie ma nic w gecie było news.php natomiast jeżeli jest coś w gecie ma wyświetlać ten plik który został przesłany przez geta do include.
Da się tak zrobić?
Pozdrawiam,
Micki!