Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] Problem z $GET
MichallusTG
post
Post #1





Grupa: Zarejestrowani
Postów: 4
Pomógł: 0
Dołączył: 12.03.2007

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


Kod PHP:
  1. <?php
  2. if (array_key_exists('js', $_GET)) {
  3.  
  4. if ($_GET['js'] == 1) {
  5.  $x = 1;
  6.  $y = 2;
  7.  $z = 3;
  8. }
  9. else {
  10.  $x = 4;
  11.  $y = 5;
  12.  $z = 6;
  13. }
  14. }
  15. else {
  16.  $x = 1;
  17.  $y = 2;
  18.  $z = 3;
  19. }
  20.  
  21. }
  22. ?>


Kod strony:

  1. <title />
  2. </head>
  3. <?php print $x . $y . $z; ?>
  4. </body>
  5. </html>


W kodzie strony czysto. Pomógłby mi ktoś znaleźć błąd?
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: 20.08.2025 - 14:46