Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]DIV w CASE, Błąd
Matimor
post
Post #1





Grupa: Zarejestrowani
Postów: 287
Pomógł: 10
Dołączył: 22.08.2009

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


Witajcie
Tworzyłem sobie linki do strona takim oto sposobem:

  1. switch( $_GET['page'])
  2. {
  3. default:
  4. //Formularz 1
  5. break;
  6.  
  7. case 'step2':
  8. //Formularz 2
  9. break;
  10.  
  11. case 'step3':
  12. //Formularz 3
  13. break;
  14.  
  15. case 'step4':
  16. //Formularz 4
  17. break;
  18. }


No i teraz mam taki problem, że nie mogę wstawić
  1. echo'<div class="formularz1">';
ponieważ pokazuje mi błąd. Jak mam wstawić <div> do case?


--------------------
Go to the top of the page
+Quote Post
Spawnm
post
Post #2





Grupa: Moderatorzy
Postów: 4 069
Pomógł: 497
Dołączył: 11.05.2007
Skąd: Warszawa




Jaki błąd, pokaż jak wstawiałeś.
Go to the top of the page
+Quote Post
Matimor
post
Post #3





Grupa: Zarejestrowani
Postów: 287
Pomógł: 10
Dołączył: 22.08.2009

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


  1. switch( $_GET['page'])
  2. {
  3. default:
  4. echo'<div class="menu">';
  5. echo" <b><font color='#FFFFFF'>$lang[step] 1/4</font></b>";
  6. echo'</div>';
  7. break;
  8.  
  9. case 'step2':
  10. //Formularz 2
  11. break;
  12.  
  13. case 'step3':
  14. //Formularz 3
  15. break;
  16.  
  17. case 'step4':
  18. //Formularz 4
  19. break;
  20. }

  1. Parse error: syntax error, unexpected T_CLASS, expecting ',' or ';'


Ten post edytował Matimor 23.08.2009, 18:24:28


--------------------
Go to the top of the page
+Quote Post

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: 19.08.2025 - 13:07