Slawe Posted June 13, 2007 Report Share Posted June 13, 2007 Sveiki, Šodien manīju viena angļu mājas lapa , ka ejot uz forumu , pirms tajā tiekot bija jāievada lietotāj vārds un parole. ( demo , demo ) Un tikai tad ielaiž index.php Varbūt kāds varetu ielikt šeit ko lidzīgu ? Paldies par atsaucibu. Link to comment Share on other sites More sharing options...
hackerman Posted June 13, 2007 Report Share Posted June 13, 2007 Nu a ko nesaproti? http://lv.php.net/if Link to comment Share on other sites More sharing options...
Slawe Posted June 13, 2007 Author Report Share Posted June 13, 2007 Nevaru atrast kuru man tur vaig. :( Link to comment Share on other sites More sharing options...
hackerman Posted June 13, 2007 Report Share Posted June 13, 2007 (edited) Nu kā...? if($_POST['username'] == "demo" && $_POST['pass'] == "demo"){ //raada lapu }else{ echo "tev jaaielogojas"; } Edited June 13, 2007 by hackerman Link to comment Share on other sites More sharing options...
Exzo Posted June 13, 2007 Report Share Posted June 13, 2007 Piemērs protams grandiozs... Sākumam ieteiktu palasīt par PHP pamatiem Link to comment Share on other sites More sharing options...
hackerman Posted June 13, 2007 Report Share Posted June 13, 2007 Kas vainas piemeeram? :P Link to comment Share on other sites More sharing options...
andrisp Posted June 14, 2007 Report Share Posted June 14, 2007 Kāds jautājums - tāda atbilde. Link to comment Share on other sites More sharing options...
Recommended Posts