Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Frameset w html [html] [php], ustawka
Muadib
post
Post #1





Grupa: Zarejestrowani
Postów: 87
Pomógł: 0
Dołączył: 9.11.2005

Ostrzeżenie: (0%)
-----


Mam ciekawe zapytanie chciałbym zrobic dokument na zasadzie freamseta. Struktura samego HTMLa jest następująca:

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  4. <title>Administration</title>
  5. </head>
  6.  
  7. <frameset cols="180,*" >
  8. <frame src="left.php" name="nav" scrolling="auto" >
  9. <frame src="main.php" name="phpmain">
  10.  
  11. </html>


Plik left.php to 2 guziki:

  1. <?php
  2. echo "<form action = 'dod.php'>";
  3. echo "<input type='submit' name='potwierdz' value='Dodaj' />".'<br />';
  4. echo "</form>";
  5.  
  6. echo "<form action = 'wyswietl.php'>";
  7. echo "<input type='submit' name='potwierdz' value='Przeglądaj' />".'<br />';
  8. echo "</form>";
  9. ?>


Mam pytanie jak zrobić by po naciśnięcia guzika w lewym framie, który wyświetla left.php, w prawym (main.php) framie wyświetliła sie zawartość plików podczepionych pod guziki o.o
Go to the top of the page
+Quote Post
pest
post
Post #2





Grupa: Zarejestrowani
Postów: 78
Pomógł: 15
Dołączył: 10.12.2007
Skąd: Lublin

Ostrzeżenie: (0%)
-----


Tak samo jak w przypadku <a href="" target="frame_name"> ... </a>,
powinno działać
  1. <?php
  2. echo '<form action="dod.php" target="phpmain">';
  3. echo '<input type="submit" name="potwierdz" value="Dodaj" /><br />';
  4. echo '</form>';
  5.  
  6. echo '<form action="wyswietl.php" target="phpmain">';
  7. echo '<input type="submit" name="potwierdz" value="Przeglądaj" /><br />';
  8. echo '</form>';
  9. ?>
Go to the top of the page
+Quote Post
Muadib
post
Post #3





Grupa: Zarejestrowani
Postów: 87
Pomógł: 0
Dołączył: 9.11.2005

Ostrzeżenie: (0%)
-----


Noo faakt (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif) dobra git działa (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 14:52