Buyur.
təşəkkürlər. mənim son kodum bu cür oldu. bəlkə kiməsə lazım olar:
http://pastebin.com/tFKKtsR2
PHP kodda [code] <option> $v </option> [/code] hissəsi əlavə olunmadı...
Salam. Koda baxdıqda (View code) iki selected olduğu görünür. "Zeus" və "Odin" nəticəsini almaq üçün belə variantdan da istifadə edə bilərsiniz.
[code]
<select>
<?php
$haystack = "Zeus vs Odin";
$matrix = explode(" ", $haystack);
$matrix[1] = "Marduk";
$find = "Zeus";
foreach($matrix as $v) {
$option = ($find === $v) ? "selected" : "";
echo "$v";
}
unset($find);
?>
</select> vs <select>
<?php
$find = "Odin";
foreach($matrix as $v) {
$option = ($find === $v) ? "selected" : "";
echo "$v";
}
?>
</select>
[/code]
php mysql nəticələr görsənmir.
Phpbb3 forum subdomeində düzgen İşləmir
İki javascript bir səhifədə işləmir.