Witam,
Mam następujący problem. Piszę pierwszą aplikację w php\mysql i wszystko szło bezproblemowo, do czasu gdy sprawdziłem czy serwis działa pod innymi przeglądarkami niż Firefox. Pod Operą oraz IE nie reaguje przycisk zaloguj i nie mam pojęcie dlaczego.Byłbym wdzięczny jeśli ktoś byłby w stanie nakierować mnie jakoś na rozwiązanie. Pod FF wszystko działa w 100%.
login.php
<?php
require_once('config.php');
if (isset($_POST['submit'])){
if (empty($_POST['login'])){ $message .= '<font class="blad">Nie podałes loginu</font><br />';
$l = FALSE;
}else{
$l = usun($_POST['login']);
}
if (empty($_POST['haslo'])){ $message .= '<font class="blad">Nie podałes hasła</font><br />';
$h = FALSE;
}else{
$h = usun($_POST['haslo']);
}
if ( $l && $h ){
$query = "SELECT username FROM user WHERE username='$l' AND haslo=password('$h')";
if($row){
$_SESSION['zalogowany'] = true;
$_SESSION['login'] = $_POST['login'];
header("Location: dane/glowna.php");
}else{
$message .= '<font class="blad">Błędny login lub hasło</font><br />';
}
}else{
$message .= '<font class="blad">Spróbuj jeszcze raz</font>';
}
}
?>
<html>
<link rel="stylesheet" type="text/css" href="css3.css">
<form method="post" action="
<?php echo $_SERVER['PHP_SELF']; ?>"
<br><p align ="center"><font size="6"> Logowanie do systemu Banku</font></form></p>
<div align="center"><font color="red">
<?php if(isset($message)){ }
?>
</font></div>
<br><table align="center" border="0">
<tr>
<td align="right" class="uni_01">Login:</td>
<td><input type="text" name="login" size="30"></td>
</tr>
<tr>
<td align="right" class="uni_01">Hasło:</td>
<td><input type="password" name="haslo" size="30"></td>
</tr>
<tr>
<td align="right" class="uni_01"> </td>
<td>
<p align="center"><input type="submit" name="submit" value="loguj">
</td></tr>
</table>
<p align="center"><a href="reg.php" target=strona>Rejestracja</a>
</form>
</html>
<div align="center">
}
?>
</div>