Jak usunąć potrzebę podawania hasła w poniżej podanym kodzie??
<?php
if(!isSet($_SESSION['gracz'])){ header ("Location: index.php");
}
if(isSet($_POST['zmien_dane'])){ if($haslo['haslo'] !== md5($_POST['shaslo'])){ echo "Wpisz poprawne hasło!<br /><a href='java script:history.go(-1)'>powrót</a>"; }
else {
mysql_query("UPDATE gracze SET imienazwisko='$imienazwisko', adres='$adres', kodpocztowy='$kodpocztowy', miasto='$miasto', ' WHERE gracz='".$oGracz['gracz']."' "); echo "Twoje dane zostały zmienione pomyślnie!<br /><a href='java script:history.go(-1)'>powrót</a>"; }
}
?>
<?php
?>
<center>
<h3>Edytuj Swoje Dane Osobowe</h3>
<table align="center"><form action="?a=zmiana&p=3" name="zmiana_dane" method="post">
<table>
<tr>
<td><h4>Imię i Nazwisko</h4></td>
</tr>
<tr>
<td><input size="30" id="input" maxlength="40" type="text" name="imienazwisko" value="
<?php echo $dane['imienazwisko'] ?>" /></td>
</tr>
<tr>
<td><h4>Adres</h4></td>
</tr>
<tr>
<td><input size="30" id="input" maxlength="40" type="text" name="adres" value="
<?php echo $dane['adres'] ?>" /></td>
</tr>
<tr>
<td><h4>Kod Pocztowy:</h4></td>
</tr>
<tr>
<td><input size="30" id="input" maxlength="10" type="text" name="kodpocztowy" value="
<?php echo $dane['kodpocztowy'] ?>" /></td>
</tr>
<tr>
<td><h4>Miasto:</h4></td>
</tr>
<tr>
<td><input size="30" id="input" maxlength="10" type="text" name="miasto" value="
<?php echo $dane['miasto'] ?>" /></td>
</tr>
<tr>
<td><h4>Hasło</h4></td>
</tr>
<tr>
<td><input size="30" id="input" maxlength="16" type="password" name="haslo" /></td>
</tr>
<tr>
<td align="right"><input type="submit" id="button" name="zmien_dane" value="Zmień"></td>
<td> </td>
</tr>
</table>
</form></table>
</center>