<html> <head> <title>dynamiczny formularz</title> </head> <body text=orange> <h3 align=center>Edycja graczy rankingowych</h3> <form name="formularz" action="edycja.php" method="post"> <? function sortuj() { for($i=0;$i<$ile;$i++) { } $n); for($i=0;$i<$ile;$i++) { } } //petla_Główna { { sortuj(); } { for ($i=0;$i<$n;$i++) { } } $lp=1; for($i=0;$i<$n;$i++) { echo "<tr align="center"><td>$lp</td><td>$nick[$i]</td><td><font color=red>$punkty[$i]</font></td><td> Zmień: <input type=text name=pts[$i] value=$punkty[$i] size="5"></td></tr>"; $lp++; } echo "<p align="center">Nick : <INPUT TYPE=TEXT NAME=nnick value=""> punkty: <INPUT TYPE=TEXT NAME=npunkty VALUE=""><INPUT TYPE=SUBMIT VALUE="DODAJ"></FORM></p>"; } ?> </body> </html>
Mysle ze kod jest ok, bo gdy probuje kliknąć przycsik Zmien to pojawia się coś takiego:
Cytat
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.23 Server at localhost Port 80
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.23 Server at localhost Port 80
A w pliku errors.log widnieje taki wpis:
Cytat
[Fri Mar 30 22:01:55 2007] [error] [client 127.0.0.1] Premature end of script headers: c:/apache/php/php.exe
I powiedzcie co jest nie tak, że nie mogę wykonać opracji nadpisania pliku czy to coś z komfiguracją serwera apache, czy jak (dodam że mam phptriad dlatego ze nie chcialo mi sie recznie wpisywac wszystkiego, a że dopiero sie ucze dlatego dzialam na tym czyms)