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
 
Start new topic
Odpowiedzi
fander
post
Post #2





Grupa: Zarejestrowani
Postów: 231
Pomógł: 22
Dołączył: 6.10.2008

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


  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. countdown();
  18. ?>


Ten post edytował fander 23.10.2009, 10:16:10
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: 16.10.2025 - 15:16