Prosże dam wszytsko tutaj...:
Pierwszy SELECT<td align="right" class="uni_01">Kraj Gospodarzy:
</td> <td align="left" class="uni_01"> <select name="flaga_gosp" onchange="f(this, 'obraz')"> [...]
</select> <img id="obraz" align="top" src="blank.gif" height="20" width="20" alt="" />
Drugi SELECT<td align="right" class="uni_01">Kraj Gości:
</td> <td align="left" class="uni_01"> <select name="flaga_gosc" onchange="f(this, 'obraz2')"> [...]
</select> <img id="obraz2" align="top" src="blank.gif" height="20" width="20" alt="" />
i dodanie do pliku odpowiedzialnego za pokazanie strony:
<script language="JavaScript"> function f(obj,im){
document.getElementById(im).src='images/flags/flag_'+obj.options[obj.selectedIndex].value+'.png';
}
i error:
<?php
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'
?>
w linijce:
<select name="flaga_gosp" onchange="f(this, 'obraz')">
HELP