Mam problem, otóż chodzi o to, że mam na mojej strony 2 drop down'y których zawartość jest zależna od tego co znajduje się w pewnej strukturze danych.
Wszystko elegancko działa na maszynie lokalnej (XAMPP), natomiast stronka wrzucona na sewer w firmie i na serwer Toyi pod tym kątem działa nieodpowiednio, gdyż nie następuje pobranie danych i uzupełnienie opcji menu drop down.
co moze być przyczyną?
Bardzo testowa wersja projektu nad którym pracuje znajduje się pod tym adresem : http://strony.toya.net.pl/~kfrolow86/szkoly/
Chodzi o to że jest tylko "wybierz powiat" i "wybierz rodzaj szkoły", i nie ma dalej nic...
Drugi mój problem to kwestia CSS, troche w tym jestem początkujący i albo czegoś nie rozumiem albo nie wiem o co chodzi :/ Jak zrobić żeby ta linia która dzieli sekcję środkową i sekcję banerów (poki co obrazki Widzewskie) była do samego końca bez względu na rozmiar sekcji #srodek?
oto kod który odpowiada za problem nr 1

<form action="index.php" method="get"> <select name="s1" style='font-size: 10px;'> <?php for ($i=0;$i<count($txt_file);$i++) { } for ($i=0;$i<count($txt_file);$i++) { $district_array[$i] = $temporary_array[$i][13]; } //var_dump($result_array); $tmp_ind = 0; for ($i=0;$i<count($district_array);$i++) { if ($result_array[$i] != NULL) { $new_array[$tmp_ind] = $result_array[$i]; $tmp_ind++; } } //var_dump($new_array); //$tablica = file("./navigation/localization.txt"); $tablica = $new_array; if ($_GET['s1']=="") { /* we make first option default only if we did not receive any parameter from GET */ } else { } for ($i=0;$i<count($tablica);$i++) { $selectValues[$tablica[$i]]=$tablica[$i]; } foreach($selectValues as $key => $value) { /* lets remove any newline characters */ /* if our key matches s1 parameters taken from URL - we make that option selected */ /* so if a user selects an option and page gets reloaded, the same option is still selected */ { } else { } } ?> </select> <select name="s2" style='font-size: 10px;'> <?php for ($i=0;$i<count($txt_file1);$i++) { } for ($i=0;$i<count($txt_file1);$i++) { $schooltype_array[$i] = $temporary_array1[$i][12]; } $tmp_ind1 = 0; for ($i=0;$i<count($schooltype_array);$i++) { if ($result_array1[$i] != NULL) { $new_array1[$tmp_ind1] = $result_array1[$i]; $tmp_ind1++; } } $tablica1 = $new_array1; if ($_GET['s2']=="") { /* we make first option default only if we did not receive any parameter from GET */ } else { } for ($i=0;$i<count($tablica1);$i++) { $selectValues1[$tablica1[$i]]=$tablica1[$i]; } foreach($selectValues1 as $key => $value) { /* lets remove any newline characters */ //$temp_key=mb_strtolower($temp_key, 'UTF-8'); /* if our key matches s2 parameters taken from URL - we make that option selected */ /* so if a user selects an option and page gets reloaded, the same option is still selected */ { } else { } } ?> </select> <br><br> <input type=submit style='font-size: 10px;' value="Szukaj"/> </form>