poniżej przedstawiam szkielet/wycinek jednej ze stron. Opiszę problem po kolei. Loguję się do systemu -> otwieram stronę którą wkleiłem poniżej->mam pole select z wyborem miesięcy, poniżej jakieś tam zestawienie odnoszące się do okresu z wybranego pola select->domyślnie otwiera się na bieżącym miesiącu-> i tutaj problem np. otwieram tą strone domyślnie zestawienie za wrzesień jednak gdy wybiorę np sierpień wylogowuje mnie ...
<?php { print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; print '<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/> <title>....:::: ANALYZER ::::....</title> <style type="text/css" media="all">@import "/analyzer/css/style.css";</style> <style type="text/css" media="all">@import "/analyzer/css/example1.css";</style> <style type="text/css" media="all">@import "/analyzer/css/podswietlenie_wierszy.css";</style> <script type="text/javascript" src="/analyzer/css/ie5.js"></script> <script type="text/javascript" src="/analyzer/css/DropDownMenuX.js"></script> '; ?> </head> <body> <?php $year = $today[year]; $month = $today[mon]; $id = $_SESSION['xlid']; include('../../templates/header.php'); include('../../funkcje/returnsAkwMakroregions.php'); include('../../funkcje/returnGidsAkw.php'); include('../../db/conection.php'); include('../../querries/plansQuerries.php'); ?> <br />Wybierz miesiąc <br /> <select onChange="window.location.href=this.options[this.selectedIndex].value;"> <option>Wybierz</option> <option value="http://analyzer/analizy/plans/index.php?id=7">lipiec</option> <option value="http://nalyzer/analizy/plans/index.php?id=8">sierpień</option> <option value="http://analyzer/analizy/plans/index.php?id=9">wrzesień</option> </select> <br /><br /> <table class="tabela"> <!-- TUTAJ ZACZYNA SIĘ GŁÓWNA TABELKA Z PLANAMI --> <tr> <th scope="col">PH</th> <th scope="col">ROK</th> <th scope="col">M-C</th> <th scope="col">WYKONANIE</th> <th scope="col">PLAN</th> <th scope="col">STATUS</th> <th scope="col">BRAKUJE</th> <th scope="col">% WYKONANIA</th> </tr> <?php foreach ($dbh->query( $PLANS_COUNTER_MONTHLY ) as $row) { if( $row[8] < 100 ) { $rowColor = '#F85300'; }else $rowColor = '#BEE48C'; } ?> <?php include('../../templates/footer.inc'); ?> </body> </html>
dlaczego? coś nie tak z
onChange="window.location.href=this.options[this.selectedIndex].value;
pozdrawiam