IT_sausinsh Posted February 17, 2005 Report Share Posted February 17, 2005 Te ir tas kods.... viņš līdz galam nenostrādā.... tas ir apstiprinot nenotiek nekādas darbības vienkārši parādās ievades lauki pa jaunam lai gan tā nevajadzētu būt (manuprāt) Link to comment Share on other sites More sharing options...
IT_sausinsh Posted February 17, 2005 Author Report Share Posted February 17, 2005 te laikam visi tikai apskatās un nevar man palīdzēt!!! Nu tad Paldies par to pašu!!! Link to comment Share on other sites More sharing options...
Robis Posted February 17, 2005 Report Share Posted February 17, 2005 Pareizrakstība! Varbūt pamēģini šādi (zemāk), varbūt ies: <?php if (!isset($_POST['submit']) { ?> <h1>Lūdzu ielogojies!</h1> Tālāk tikai reģistrētiem lietotājiem! <form method="post" action="secret.php"> <table border = 1> <tr> <th>Lietotājvārds</th> <td><input type="text" name="name"></td> </tr> <tr> <th>Parole</th> <td><input type="password" name="password"></td> </tr> <tr> <td colspan=2 align =center> <input type="submit" value="Ieiet"> </td> </tr> </table> </form> <?php } else if ($_POST['name']=="vars" && $_POST['password']=="paro") { echo "<h1>Te nu tas ir</h1>"; echo "Viss turpinās!"; } else { echo "<h1>Ej prom!</h1>"; echo "Tev te nav ko darīt"; } ?> Link to comment Share on other sites More sharing options...
orion Posted February 17, 2005 Report Share Posted February 17, 2005 pietiktu ar 2 rindaam faila saakumgalaa... $name=$_POST['name']; $password=$_POST['password']; Link to comment Share on other sites More sharing options...
IT_sausinsh Posted February 17, 2005 Author Report Share Posted February 17, 2005 es teiktu ka neiet tik un tā.... Link to comment Share on other sites More sharing options...
Robis Posted February 17, 2005 Report Share Posted February 17, 2005 es teiktu ka neiet tik un tā.... 13854[/snapback] Jā, sorry, nomaini 2. rindiņu uz: if (!isset($_POST['submit']) ) Link to comment Share on other sites More sharing options...
Recommended Posts