i (bir forloop iç döngü için) bir ikiz forloop bir açılan üreten am
i IE7 / 8 ile aynı zaman post i bir dizi (dizi {[0] = 11_31_2}) gibi değerleri almak, ama firefox i 11_31_2 olarak almak.
Aşağıdaki i kullanma Aşağıdaki kodu
for ($k=1;$k<=strlen($weeklist);$k++) {
if ($presentweek == 1) {
$k = 0;
}
if (substr($weeklist,$k-1,1) == 1 || $presentweek == 1) {
if ($presentweek == 1) {
$presentweek++;
}
$selectedweekstarttime = $starttime + (60*60*24*7*$k);
$selectedweekendtime = $selectedweekstarttime + (60*60*24*6);
foreach ($meterreadergroup as $meterreader_id) {
$readerid_selected = $readerselect == "" ? $meterreader_id : $readerselect;
$has_rule = getPlanningRuleOfTheWeek ($readerid_selected,$selectedweekstarttime);
$has_freeweek = getFreeTimeOfTheWeek ($readerid_selected,$selectedweekstarttime);
if ($has_rule != "" || $has_freeweek != "") {
if (stripos($problemweek,$getweeks[$k]) === false) {
$problemweek = $problemweek.$getweeks[$k].";";
}
$filldetails = "";
if (is_array($has_rule)) {
$filldetails .= "Has Planningrules<br />";
}
if (is_array($has_freeweek)) {
$filldetails .= "Has freeweek/day";
}
$selectdetails = "";
print "getweeks - ".$getweeks[$k]."<br>";
$selectdetails .= "<select errorcheck='checkoptions' name='".$readerid_selected."_".$getweeks[$k]."' onchange='clearErrorFields(this,".$x.");'>
<option value='".$readerid_selected."_".$getweeks[$k]."_0'>Choose Solution</option>
<option value='".$readerid_selected."_".$getweeks[$k]."_1'>Leave this week for this meterreader out when copying</option>
<option value='".$readerid_selected."_".$getweeks[$k]."_2'>Leave this entire week out when copying</option>
<option value='".$readerid_selected."_".$getweeks[$k]."_3'>Remove current rules for meterreader and force new rules</option>
</select>";
$row_details[] = array($getweeks[$k],fetchMeterreaderDetails("vnaam,tv,anaam",$readerid_selected),$filldetails,$selectdetails,"<div id='error".$x."' ></div>");
$x++;
}
}
}
}
örneğin
name='".$readerid_selected."_".$getweeks[$k]."' eample name='11_31'
value='".$readerid_selected."_".$getweeks[$k]."_0' value ='11_31_2'
so when i $_REQUEST['11_31'] i expect the value as 11_31_2 i only get the value i expected in firefox, but for me in IE7/8 i get the value as array{ [0] = 11_31_2}