pro_killer Posted October 26, 2006 Report Share Posted October 26, 2006 lieta tada ka baigi vaiga tadu kodu kasss butu tads kipa Vards: uzvards: Skype: Nedaudz zemak APSTIPRINAT: un tur aiz tiem vardiem butu ramitis kuros butu jaieraksta viss ko vaiga un leja pec tam nospiezt APSTIRPINAT ! Pec ievadisanas butu labi ja vins radditos nedaudz zemak piemera sadi Vards:janis uzvards:Upmanis Skype:janitis cerams sapratatat meginaju cik vareju ! ludzu izpalidzat es neko nerubiji no php bet tikai macos html :) ! paldies par uzmanibu ! gadu atbildi/es cerams ! Link to comment Share on other sites More sharing options...
andrisp Posted October 26, 2006 Report Share Posted October 26, 2006 Hm... tu vēlies lai tā informācija kur ieglabājas ? Datubāzē vai failā ? Link to comment Share on other sites More sharing options...
pro_killer Posted October 26, 2006 Author Report Share Posted October 26, 2006 kaut vai datubaze Link to comment Share on other sites More sharing options...
kalabox Posted October 27, 2006 Report Share Posted October 27, 2006 nu uztaisi parastu formu ar $_print Link to comment Share on other sites More sharing options...
drinkits Posted October 27, 2006 Report Share Posted October 27, 2006 vnk izveido datubaazi ar 3 kolonnaam un php apstradaa kaa vajag =] w3schools.com viss rakstyiits =] Link to comment Share on other sites More sharing options...
pro_killer Posted October 27, 2006 Author Report Share Posted October 27, 2006 vnk izveido datubaazi ar 3 kolonnaam un php apstradaa kaa vajag =] w3schools.com viss rakstyiits =] ok meginasu paldies Link to comment Share on other sites More sharing options...
v3rb0 Posted October 27, 2006 Report Share Posted October 27, 2006 a varbūt šitā - http://paste.php.lv/4623 Link to comment Share on other sites More sharing options...
mizerss Posted November 2, 2006 Report Share Posted November 2, 2006 negribeejaas jaunu topicu taadiem niekiem taisiit, taapeec pajautaashu te pat.. taa kaa noleemu maaciities php un iegaadaajos vienu graamatu un veel peec viena interneta resursa skatos... bet atduros jau pashaa saakumaa :( taatad ir divi faili svieciens.htm <html> <body> <form action="greeting.php" method="post"> Ieraksti, lūdzu, savu vārdu:<input type="text" name="vards"><br> <input type="submit" name="submit" value="tālāk"> </form> </body> </html> un greeting.php <html> <body> <?php print ("Topi sveicināts, $vards!\n"); ?> </body> </html> Jautaajums ir taads, ja ievada tai formaa vaardu, vai vinjam vajadzeetu peec tam atteeloties lapaa greeting.php? vai arii bez datu baazes nekas nesanaaks..? Link to comment Share on other sites More sharing options...
v3rb0 Posted November 2, 2006 Report Share Posted November 2, 2006 printf('Topi sveicināts %s!',$_POST['vards']); Link to comment Share on other sites More sharing options...
andrisp Posted November 2, 2006 Report Share Posted November 2, 2006 (edited) mizerss, ar datubāzi šeit nav nekāda sakara. Tu iegādājies latviešu "PHP Soli pa solim" ? Ja jā, tad uzmanies, jo tur māca ar register_globals = On (php konfigurācija). Tas ir nedroši. Bet tev php ir droši vien ar register_globals = Off, tāpēc grāmatas skripti nedarbojas. Kaut arī varbūt nesaproti, ko tas viss nozīme, tad zini, ka lai piekļūtu mainīgajam, kas nāk no formas ar method="post", ir jāizmanto $_POST masīvs. Kā v3rb0 tev parādīja. print ("Topi sveicināts, ".$_POST['vards']."!\n"); Ja tev formas metode būtu "get", tad tiem mainīgajiem jāpiekļūst ar $_GET masīvu. Ar $_GET['mainigais'] piekļūst visiem mainīgajiem, ko padod caur URL (Piem., http://www.example.com/skripts.php?vards=J...zvards=Berzins). Edited November 2, 2006 by andrisp Link to comment Share on other sites More sharing options...
mizerss Posted November 2, 2006 Report Share Posted November 2, 2006 paldies... buus par shito jaapameklee kaut kur citur.. ne graamataas.. vispaar uzmineeji par to graamatu "Soli pa solim".. + man veel viena graama(domaaju, ka labaaka) krievu valodaa, kuras autors ir Larijs Ulmans.. tur arii par sho lietu nekas nav mineets! Nu ok lab, ka ir forumi, savaadak iesaaceejam uznjeemiiba var pazust vienaa nodaljaa.. Link to comment Share on other sites More sharing options...
andrisp Posted November 2, 2006 Report Share Posted November 2, 2006 Iesaku izlasīt: http://www.php.net/manual/en/tutorial.php un http://www.php.net/manual/en/langref.php Krieviski arī tur ir, ja vajag. Link to comment Share on other sites More sharing options...
Recommended Posts