werd Posted May 5, 2007 Report Share Posted May 5, 2007 (edited) Sveiki Palidziet! Man ir jautajums par to vai vajag taisit atsevisku failu kura ir pasword un username vai ka savadak? Edited May 5, 2007 by phpjanis Link to comment Share on other sites More sharing options...
Delfins Posted May 5, 2007 Report Share Posted May 5, 2007 logins, - kas kur kam !? Link to comment Share on other sites More sharing options...
werd Posted May 5, 2007 Author Report Share Posted May 5, 2007 Nu man ir vajadziga parile un lietotaj vards Ka labak to taisit? Link to comment Share on other sites More sharing options...
werd Posted May 5, 2007 Author Report Share Posted May 5, 2007 eku mans skripts <body> <? $username ="janis" $password ="janusseks" if ($username =="janis") ($password ="janusseks") { echo "Viss ok" } else } echo "Nav ok" } ?> </body> Link to comment Share on other sites More sharing options...
Delfins Posted May 5, 2007 Report Share Posted May 5, 2007 labāk DB, ātrāk strādās. Plus neaizmirsti paroles glabāt md5 hash-ā. PS: takš paskaties jebkuru open-source skriptu, viņu ir miljoni. Link to comment Share on other sites More sharing options...
werd Posted May 5, 2007 Author Report Share Posted May 5, 2007 Nav man DB un esmu tads ka iesacejs! Mosh vari man tadu skripta adresi vai pashu skriptu dabut? Link to comment Share on other sites More sharing options...
werd Posted May 5, 2007 Author Report Share Posted May 5, 2007 (edited) Nevaru tadus open-source atrast! kur google.lv vai ...???????? Edited May 5, 2007 by phpjanis Link to comment Share on other sites More sharing options...
Delfins Posted May 5, 2007 Report Share Posted May 5, 2007 hotscripts.com Link to comment Share on other sites More sharing options...
andrisp Posted May 6, 2007 Report Share Posted May 6, 2007 if ($username =="janis") ($password ="janusseks") { Kas tā par kreisu sintaksi ? Link to comment Share on other sites More sharing options...
werd Posted May 6, 2007 Author Report Share Posted May 6, 2007 Kas ir kreisa sintakse, kur tad bij kluda? bet ari sitas man nedarbojas mans script ir <body> usename<input type="text" size="15" /> password<input type="text" size="15" /> <? $username="janis" $password="janusseks" if ($username=="janis") { ($password=="janusseks") echo "Viss ok!" } else { echo "Nekā!" { >? </body> Link to comment Share on other sites More sharing options...
bubu Posted May 6, 2007 Report Share Posted May 6, 2007 PHP kodā atverošo figūriekavu { skaitam jāsakrīt ar aizverošo figūriekavu skaitu }. Vai tavā kodā abu skaits ir vienāds? Link to comment Share on other sites More sharing options...
andrisp Posted May 6, 2007 Report Share Posted May 6, 2007 1) Saliec semikolus. 2) Ja gribi pārbaudīt vienā if'ā divas vērtības, tad dari šādi: if ($x == 1 && $y == 1) { ... } 2) Aizver pareizi php bloku (?>) Link to comment Share on other sites More sharing options...
werd Posted May 12, 2007 Author Report Share Posted May 12, 2007 Es saliku semikolus(nez vai pareizi) un tapat scripts nedarbojas, KAS PAR LIETU ? ludzu palidziet! body> usename<input type="text" size="15" /> password<input type="text" size="15" /> <? $username="janis" $password="janusseks" if ($username=="janis"&& $password=="janusseks") { ($password=="janusseks"); echo "Viss ok!"; } else { echo "Nekā!"; } ?> </body> Link to comment Share on other sites More sharing options...
bubu Posted May 12, 2007 Report Share Posted May 12, 2007 Izlasi kļūdas paziņojumu, tur būs teikts kas par lietu. Nākamais tavs posts bez kļūdas pazioņuma izlasīšanas tiks ielikts Drazā uz neatgriešanos. Link to comment Share on other sites More sharing options...
werd Posted May 13, 2007 Author Report Share Posted May 13, 2007 unexpected T STRING(nesapratu kas par vainu) Mosh kadam ir kads elementars login scripts???butu loti pateicigs!!!! Link to comment Share on other sites More sharing options...
Recommended Posts