Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Problem ze skryptem
Dr.VaNs
post
Post #1





Grupa: Zarejestrowani
Postów: 30
Pomógł: 0
Dołączył: 12.10.2007

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


Witam,

ostatnio klepe sobie w wolnych chwilach pracke licencjacką, no i te wolne chwile czasem przypadają przy maxymalnym zmęczeniu,

mam prosty problem dla kogoś z świeżą głową:

  1. <?php
  2.  
  3. $randcounter=10;
  4. function countdown()
  5. {
  6. $randcounter--;
  7. if($randcounter == 0)
  8. {
  9. echo "<input type='submit' value='Pobierz Plik' onClick=\"window.location=\'".$scripturl . "ssij.php?a=" . $filecrc . "&b=" . md5($foundfile[2].$_SERVER['REMOTE_ADDR'])."\'">";
  10. }
  11. if($randcounter > 0)
  12. {
  13. echo "<input type=submit value=\"Poczekaj ".$randcounter." sekund...\">';
  14. setTimeout('countdown()',1000);
  15. }
  16.  
  17. }
  18. countdown();
  19. ?>
  20.  


To jest oczywiście fragment kodu wycięty na potrzeby obadania co nie tak.

Parse error: syntax error, unexpected '<' in S\test.php on line 13

Dziękuje i Pozdrawiam
Go to the top of the page
+Quote Post

Posty w temacie


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: 15.09.2025 - 03:02