Mam problem z IE, mianowicie zastosowałem przycisk graficzny zgodnie z zaleceniami z tematu o przyciskach graficznych znajdujący się już tutaj. W Firefoxie nie ma najmniejszego problemu image submit działa jednak w IE skrypt już się nie wykonuje. Jeżeli zastosuje w type zwykły submit to też nie ma problemu. Chodzi tutaj głównie o usunięcie rekordu. Poniżej przedstawiam większy fragment kodu w którym znajduje się problem.
Kod
while ($row = mysql_fetch_array($result)) {
$i++;
$bg = ($bg=='F2F2FF'?'E2E2F2':'F2F2FF');
$table .= "<tr bgcolor=\"#" . $bg . "\">" .
"<td align=center >" .$i. "</a></td>" .
"<td align=center >". $row['numer'] ."</a></td>" .
"<td><a href=\"zamowienie.php?c=" . $row['id'] . "\">" .
$row['klient']. "</a></td><td>" .
$row['data'] . "</td>" .
"<td align=\"center\">tel: " . $row['tel_kontakt'] ." e-mial: <a href=mailto:"
. $row['email'] . ">" . $row['email'] . "</td>" .
"<form action=\"zam_transact.php\" name=\"theform\" method=\"post\">" .
// problem jest w poniższym imput'cie
"<td align=\"center\"><input type=\"image\" src=\"images/delete.gif\" name=\"action\" value=\"Usuń zlecenie\" alt=\"Usuń\">" .
// **
"<button type=\"image\" src=\"images/document.gif\" name=\"action\" value=\"\" alt=\"Stwórz formularz\"> " .
"<img src=images/edit.gif alt=\"popraw formularz\" ></td>" .
"<input type=\"hidden\" name=\"cid\" value=" . $row['id'] . ">" .
"<input type=\"hidden\" name=\"bid\" value=" . $row['adres_id'] . "></form></tr>";
}
$i++;
$bg = ($bg=='F2F2FF'?'E2E2F2':'F2F2FF');
$table .= "<tr bgcolor=\"#" . $bg . "\">" .
"<td align=center >" .$i. "</a></td>" .
"<td align=center >". $row['numer'] ."</a></td>" .
"<td><a href=\"zamowienie.php?c=" . $row['id'] . "\">" .
$row['klient']. "</a></td><td>" .
$row['data'] . "</td>" .
"<td align=\"center\">tel: " . $row['tel_kontakt'] ." e-mial: <a href=mailto:"
. $row['email'] . ">" . $row['email'] . "</td>" .
"<form action=\"zam_transact.php\" name=\"theform\" method=\"post\">" .
// problem jest w poniższym imput'cie
"<td align=\"center\"><input type=\"image\" src=\"images/delete.gif\" name=\"action\" value=\"Usuń zlecenie\" alt=\"Usuń\">" .
// **
"<button type=\"image\" src=\"images/document.gif\" name=\"action\" value=\"\" alt=\"Stwórz formularz\"> " .
"<img src=images/edit.gif alt=\"popraw formularz\" ></td>" .
"<input type=\"hidden\" name=\"cid\" value=" . $row['id'] . ">" .
"<input type=\"hidden\" name=\"bid\" value=" . $row['adres_id'] . "></form></tr>";
}
Nie pisałbym ale nie znalazłem żadnego rozwiązania problemu a siedze już nad tym ładny czas. Byc może coś przeoczyłem. Z góry dzięki za pomoc.