WITAM
Prubuje zmienic jedna czesc w skrypcie , jest tam funkcja selekt rozne kategorie, ale chce zeby
nie bylo mozna wybierac kategori tylko przypisac jedna kategorie na stale.
tu jest ten kawalek skryptu:
?>
<td colspan="2" style="background-color: #E8E8E8;"> Alle felter market med
<img src="images/kropka.gif" alt="" /> er
n
ødvendige for at annonsen skal bli publisert
<br /><br /> <img src="images/kropka.gif" alt="" /> Hovedkategori
<select class='torget2' name="usr_make" onChange='update_model(this.selectedIndex);' style="font-size: 10pt; color: #0000FF; font-weight: bold"> <?php
foreach($make as $mak)
{
if(isset($usr_make) && $usr_make != 0)
{
if($usr_make == $mak->id)
echo "
<option value='".$mak->id."' selected >".$mak->name."
</option> \r\n";
else
\r\n";
}
else
\r\n";
}
?>
chce zeby bylo wybrana jedna kataegoria
o ta:
<option value='87'>Alt annet</option>
dzieki