Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Umiszczanie skryptu w skrypcie, wiecie moze jak?
RoysoN
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 3.12.2009

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


  1.  
  2. <html>
  3. <head>
  4.  
  5. </head>
  6. <body>
  7.  
  8. <table>
  9. <tr><td><center>Treść</center></td></tr><tr><td>
  10.  
  11. <ul>
  12. <li><a href="index.php?strona=polec"></li>
  13. </ul>
  14. <ul>
  15. <?php
  16.  
  17. $plik = file("xs.txt");
  18. foreach($plik as $value) {
  19. $exp = explode(",",$value);
  20. echo "<li><a href='indexnews.php?strona=".$exp[2]."'>dddddd</a></li>";
  21. }
  22.  
  23. ?>
  24. </ul>
  25. </td>
  26. <td>
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. <?php
  34.  
  35. if (isset($_GET["strona"]))
  36. {
  37. $strona = $_GET["strona"];
  38. if ($strona == "glowna")
  39. include("glowna.php");
  40. [b]<?php
  41.  
  42. $plik = file("xs.txt");
  43. foreach($plik as $value) {
  44. $exp = explode(",",$value);
  45. echo "else if ($strona == '".$exp[2]."')
  46. include('".$exp[0].".txt'); "
  47. }
  48.  
  49. ?> [/b]
  50.  
  51. }
  52. else
  53. {
  54. include("glowna.php");
  55. }
  56.  
  57.  
  58. ?>
  59. </td>
  60. </table>
  61.  
  62. </body>
  63. </html>

jak poprawnie umieścić jeden skrypt w drugim?


--------------------
Sztachnij sę zioom, muza spoko;]
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 11:32