<html> <head> <title>SA:MP - Control Panel</title> <STYLE type=text/css>body { color:#666; background:#1a1a1a; margin-left : 0px; margin-right : 10px; font-size: 10pt; font-family: 'Arial', sans-serif; } </STYLE> </head> <body> <center> <?php $haslo = "haselko"; if ('$haslo' == '$wynik') { <h2>Strona Testowa</h2> <a href="panel_start.php" title="START"><img src="img/button_switch_on.png"></a> <a href="panel_restart.php" title="RESTART"><img src="img/button_refresh.png"></a> <a href="panel_stop.php" title="STOP"><img src="img/button_switch_off.png"></a> } else { } ?> </center> </body></html>
Ponieważ jest to index.php chce zrobić tak że przy wejściu na index.php pokazuje się pole tekstowe gdzie trzeba wpisać hasło później w IF porównuje wpisane hasło do prawdziwego i mamy dostęp
Czyli takie pole tekstowe na początek
<input type"password" name="wynik" size=2 maxlength=24>
Proszę o pomoc.