CODE
<center><table border="1" cellspacing="1" cellpadding="0" width="100%" bordercolor="#FFFFFF"><tr>
<td width="100%" bordercolorlight="#5197FF" bgcolor="#0064FB" align="center" colspan="2">
<font size="1" color="#FFFFFF"><b>--- ANKIETA ---</b></font>
</td></tr><tr><td width="100%" align="center" colspan="2"><font size="1"><b>
JAK OCENIASZ STRONĘ
</b></font></td></tr>
<?
require("ankieta/ankieta.txt");
if(($wynik!="") && ($submit!="") && ($ankieta!="1")){
if ($wynik==1) {
$w1+=1;
}
if ($wynik==2) {
$w2+=1;
}
if ($wynik==3) {
$w3+=1;
}
if ($wynik==4) {
$w4+=1;
}
if ($wynik==5) {
$w5+=1;
}
$wyniki=fopen("ankieta/ankieta.txt", "w");
fputs($wyniki, "<?php\n\$w1=\"$w1\";\n\$w2=\"$w2\";\n\$w3=\"$w3\";\n\$w4=\"$w4\";\n\$w5=\"$w5\";\n?>\n" );
fclose($wyniki);
}
$t=$w1+$w2+$w3+$w4+$w5;
$p=1*$w1+2*$w2+3*$w3+4*$w4+5*$w5;
$p1=number_format($w1/$t*100, 2);
$p2=number_format($w2/$t*100, 2);
$p3=number_format($w3/$t*100, 2);
$p4=number_format($w4/$t*100, 2);
$p5=number_format($w5/$t*100, 2);
$wt=number_format($p/$t, 2);
$pt=number_format($wt*20, 2);
?>
<form method="post">
<tr><td width="15" align="center"><font size="1"><b><input type="radio" name="wynik" value="1">1</b></font></td>
<td width="100"><table border="1" cellspacing="0" width="<? echo $p1 ?>%" bordercolorlight="#FFFFFF" bgcolor="#0064FB" bordercolordark="#5197FF" style="border-collapse: collapse" cellpadding="0">
<tr><td width="100%" height="3"></td></tr></table><font size="1"><center><? echo $p1 ?>% <b>(<? echo $w1 ?>)</b></center></font></td></tr>
<tr><td width="15" align="center"><font size="1"><b><input type="radio" name="wynik" value="2">2</b></font></td>
<td width="100"><table border="1" cellspacing="0" width="<? echo $p2 ?>%" bordercolorlight="#FFFFFF" bgcolor="#0064FB" bordercolordark="#5197FF" style="border-collapse: collapse" cellpadding="0">
<tr><td width="100%" height="3"></td></tr></table><font size="1"><center><? echo $p2 ?>% <b>(<? echo $w2 ?>)</b></center></font></td></tr>
<tr><td width="15" align="center"><font size="1"><b><input type="radio" name="wynik" value="3">3</b></font></td>
<td width="100"><table border="1" cellspacing="0" width="<? echo $p3 ?>%" bordercolorlight="#FFFFFF" bgcolor="#0064FB" bordercolordark="#5197FF" style="border-collapse: collapse" cellpadding="0">
<tr><td width="100%" height="3"></td></tr></table><font size="1"><center><? echo $p3 ?>% <b>(<? echo $w3 ?>)</b></center></font></td></tr>
<tr><td width="15" align="center"><font size="1"><b><input type="radio" name="wynik" value="4">4</b></font></td>
<td width="100"><table border="1" cellspacing="0" width="<? echo $p4 ?>" bordercolorlight="#FFFFFF" bgcolor="#0064FB" bordercolordark="#5197FF" style="border-collapse: collapse" cellpadding="0">
<tr><td width="100%" height="3"></td></tr></table><font size="1"><center><? echo $p4 ?>% <b>(<? echo $w4 ?>)</b></center></font></td></tr>
<tr><td width="15" align="center"><font size="1"><b><input type="radio" name="wynik" value="5">5</b></font></td>
<td width="100"><table border="1" cellspacing="0" width="<? echo $p5 ?>%" bordercolorlight="#FFFFFF" bgcolor="#0064FB" bordercolordark="#5197FF" style="border-collapse: collapse" cellpadding="0">
<tr><td width="100%" height="3"></td></tr></table><font size="1"><center><? echo $p5 ?>% <b>(<? echo $w5 ?>)</b></center></font></td></tr>
<tr><td width="15" align="center"><font size="1"><b>OCENA</b></font></td>
<td width="100"><table border="1" cellspacing="0" width="<? echo $pt ?>%" bordercolorlight="#FFFFFF" bgcolor="#0064FB" bordercolordark="#5197FF" style="border-collapse: collapse" cellpadding="0">
<tr><td width="100%" height="3"></td></tr></table><font size="1"><center><? echo $wt ?> <b>(<? echo $t ?>)</b></center></font></td></tr>
<tr><td width="100%" align="center" colspan="2"
style="cursor: pointer"
onMouseOver="bgColor='#0064FB'; borderColorLight='#5197FF';"
onMouseOut="bgColor='#FFFFFF'; borderColorLight='#FFFFFF';"
onclick="this.form.submit();"><font size="1"><b>WY&LIJ</b></font></a>
</td></tr></form></table></center>
mam problem z drugą linią, dokładniej z
CODE
onclick="this.form.submit();"
Z góry wielki THX