folgendes Problem: Beim wechseln des Monats mittels des Dropdown-Menues soll die SESSIONID übergeben werden. Aber wie stelle ich das an?
$monate = Array("","Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
@$months .= sprintf("\t<option value=\"%s\">%s</option>\n"
, mktime(0,0,0,12,1,$current['year']-1)
, lang('last_year') ."..."
);
for ($i = 1; $i <= 12; $i++)
$months .= sprintf("\t<option value=\"%s\"%s>%s</option>\n"
, mktime(0,0,0,$i,1,$current['year'])
, (date("n",mktime(0,0,0,$i,1,$current['year'])) == $current['month']) ? " selected" : ""
, ftime($monate[$i].' %Y', mktime(0,0,0,$i,1,$current['year']))
);
$months .= sprintf("\t<option value=\"%s\">%s</option>\n"
, mktime(0,0,0,1,1,$current['year']+1)
, lang('next_year') ."..."
);
make_header('<span class="topnavigation"><form name="TopForm" action="'. basename($_SERVER['PHP_SELF']) .'" method="GET">
<a href="index.php?view='. mktime(0,0,0,$current['month']-1,1,$current['year']) .'&'.session_name().'='.session_id().'">'. lang('previous') .'</a>
<select name="view" onChange="TopForm.submit()">
'. $months .'
</select>
<a href="index.php?view='. mktime(0,0,0,$current['month']+1,1,$current['year']) .'&'.session_name().'='.session_id().'">'. lang('next') .'</a>
$monate = Array("","Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
@$months .= sprintf("\t<option value=\"%s\">%s</option>\n"
, mktime(0,0,0,12,1,$current['year']-1)
, lang('last_year') ."..."
);
for ($i = 1; $i <= 12; $i++)
$months .= sprintf("\t<option value=\"%s\"%s>%s</option>\n"
, mktime(0,0,0,$i,1,$current['year'])
, (date("n",mktime(0,0,0,$i,1,$current['year'])) == $current['month']) ? " selected" : ""
, ftime($monate[$i].' %Y', mktime(0,0,0,$i,1,$current['year']))
);
$months .= sprintf("\t<option value=\"%s\">%s</option>\n"
, mktime(0,0,0,1,1,$current['year']+1)
, lang('next_year') ."..."
);
make_header('<span class="topnavigation"><form name="TopForm" action="'. basename($_SERVER['PHP_SELF']) .'" method="GET">
<a href="index.php?view='. mktime(0,0,0,$current['month']-1,1,$current['year']) .'&'.session_name().'='.session_id().'">'. lang('previous') .'</a>
<select name="view" onChange="TopForm.submit()">
'. $months .'
</select>
<a href="index.php?view='. mktime(0,0,0,$current['month']+1,1,$current['year']) .'&'.session_name().'='.session_id().'">'. lang('next') .'</a>
Kommentar