Einars Posted February 16, 2005 Report Posted February 16, 2005 Es mocos un nevaru izmocit vienu lietu. Ka lai uztaisa ta: Uzrakstu nosaukumu, un textu. Nospiezu pogu "Labi". Tad man tas ievaditais nosaumums ir ka lins uz kura uzspiezot paradas text. Ka lai to uztaisa ? Piemers ka visiem forumiem - New Topic :) Var kads uzraistit visvienkarsako skriptinu un ielik ieks paste.lv ? Tadu loooti elemtaru tik lai vins ietu...
Robis Posted February 16, 2005 Report Posted February 16, 2005 Es mocos un nevaru izmocit vienu lietu. Ka lai uztaisa ta: Uzrakstu nosaukumu, un textu. Nospiezu pogu "Labi". Tad man tas ievaditais nosaumums ir ka lins uz kura uzspiezot paradas text. Ka lai to uztaisa ? Piemers ka visiem forumiem - New Topic:) Var kads uzraistit visvienkarsako skriptinu un ielik ieks paste.lv ? Tadu loooti elemtaru tik lai vins ietu... 13763[/snapback] Tipa, lai varetu pats uztaisit linku, ievadot textu texta laucinja un nospiezhot labi, izveidojas links?
Einars Posted February 16, 2005 Author Report Posted February 16, 2005 Es mocos un nevaru izmocit vienu lietu. Ka lai uztaisa ta: Uzrakstu nosaukumu, un textu. Nospiezu pogu "Labi". Tad man tas ievaditais nosaumums ir ka lins uz kura uzspiezot paradas text. Ka lai to uztaisa ? Piemers ka visiem forumiem - New Topic:) Var kads uzraistit visvienkarsako skriptinu un ielik ieks paste.lv ? Tadu loooti elemtaru tik lai vins ietu... 13763[/snapback] Tipa, lai varetu pats uztaisit linku, ievadot textu texta laucinja un nospiezhot labi, izveidojas links? 13764[/snapback] jaa uzspiezot uz ta linka paradas ievaditais text. Viss taka forumos, bet nezinu ka isti tas taisas.
Robis Posted February 16, 2005 Report Posted February 16, 2005 Tad tev vajadzēs laikam datubāzi MySQL, kur glabāt visus tos tekstus un linku nosaukumus!
Einars Posted February 16, 2005 Author Report Posted February 16, 2005 Tad tev vajadzēs laikam datubāzi MySQL, kur glabāt visus tos tekstus un linku nosaukumus! 13766[/snapback] Bet ja es pagaidam negribu vel mysql ? Man vaiga tik to principu. Tad velak art pieliksu MySQL.
Robis Posted February 16, 2005 Report Posted February 16, 2005 Tad tev vajadzēs laikam datubāzi MySQL, kur glabāt visus tos tekstus un linku nosaukumus! 13766[/snapback] Bet ja es pagaidam negribu vel mysql ? Man vaiga tik to principu. Tad velak art pieliksu MySQL. 13767[/snapback] Tādā gadījumā tev teksti jāglabā kādā text-failā, jo kaut kur viņi ir jāglabā!
Einars Posted February 16, 2005 Author Report Posted February 16, 2005 psc... man nevaiga saglabat... tik jauzpiez uz pogas un svjo. Parads tas links uzspied uz linka izlasi savas mulkibas. Spied pogu back ruka talak... psc
Klez Posted February 16, 2005 Report Posted February 16, 2005 psc... man nevaiga saglabat... tik jauzpiez uz pogas un svjo. Parads tas links uzspied uz linka izlasi savas mulkibas. Spied pogu back ruka talak... psc 13769[/snapback] kaa tu domaa, kur lai tafu textu saglabaa? lai gaisa karajas? LOL
Einars Posted February 16, 2005 Author Report Posted February 16, 2005 ble iekope sava debilaja serveri so skriptu: <html> <head> <title></title> </head> <body> <?php $urla='http://'; $urla.=$_SERVER["HTTP_HOST"]; $urla.=$_SERVER["REQUEST_URI"]; //pieskiru manigos postiem $vards = $_GET['vards']; $uzv = $_GET['uzv']; $niks = $_GET['niks']; $gadi = $_GET['gadi']; $pasts = $_GET['pasts']; $dzivo = $_GET['dzivo']; $fons = $_GET['fons']; $skola = $_GET['skola']; $brl = $_GET['brl']; $mac = $_GET['mac']; $avak = $_GET['avak']; $zag = $_GET['zag']; $izpl = $_GET['izpl']; $moc = $_GET['moc']; $cits = $_GET['cits']; $cits = $_GET['cits']; $cat=$_GET['cat']; //nospiezot pogu "submit" man paradas 3 linki - " Personiga infa ", " Papildus infa ", " Hoboji " if(isset($_GET['submit'])){ echo '<a href="'.$urla.'&cat=inf">Personiga infa</a><br>'."\n"; echo "<a href=\"$urla&cat=pap\">Papildus infa</a><br>\n"; echo "<a href=\"$urla&cat=hob\">Hoboji:</a><br>\n"; } //uz katra linka uzspiezot paradas ievadita infa pa sadalam... if ($cat=='inf'){ echo "<b>Personiga infa:\n"; echo "<br>Vards:$vards \n"; echo "<br>Uzvards: $uzv\n"; echo "<br>Niks:$niks\n"; echo "<br>Gadi:$gadi\n"; echo "<br>E-Pasts:$pasts\n"; } else if($cat=='pap'){ echo "<br><b>Papildus infa:\n"; echo "<br>Dzivo:$dzivo\n"; echo "<br>Telefons:$fons\n"; echo "<br>Skola:$skola\n"; echo "<br>Brivais laiks:$brl\n"; } else if($cat=='hob'){ echo "<br><b>Hobiji:\n"; echo "<br>$mac \n"; echo "<br>$avak \n"; echo "<br>$zag \n"; echo "<br>$izpl \n"; echo "<br>$moc \n"; echo "<br>$cits \n"; } ?> <form action="" method="get"> <table> <tr><th colspan="1">Personiga infa:</tr> <tr><td>Vards:</td><td><input type="text" name="vards"></td></tr> <tr><td>Uzvards:</td><td><input type="text" name="uzv"></td></tr> <tr><td>Niks:</td><td><input type="text" name="niks"></td></tr> <tr><td>Gadi:</td><td><input type="text" name="gadi"></td></tr> <tr><td>E-Pasts:</td><td><input type="text" name="pasts"></td></tr> <tr><th colspan="1">Papildus infa:</tr> <tr><td>Dzivo:</td><td><input type="text" name="dzivo"></td></tr> <tr><td>Telefons:</td><td><input type="text" name="fons"></td></tr> <tr><td>Skola:</td><td><input type="text" name="skola"></td></tr> <tr><td>Ka pavadi brivo laiku:</td><td><input type="text" name="brl"></td></tr> <tr><th colspan="1">Hobiji:</tr> <tr><td>Macibas:</td><td><input type="checkbox" name="mac" value="macibas"></td></tr> <tr><td>Akmenu vaksana:</td><td><input type="checkbox" name="avak" value="akmenu vaksana"></td></tr> <tr><td>Zaglis:</td><td><input type="checkbox" name="zag" value="zaglis"></td></tr> <tr><td>Leksana ar cauru izpletni:</td><td><input type="checkbox" name="izpl" value="leksana ar cauru izpletni"></td></tr> <tr><td>Motokross bez moca:</td><td><input type="checkbox" name="moc" value"motokross bez moca"></td></tr> <tr><td>Cits hobijs:</td><td><input type="checkbox" name="cits" value="cits hobijs"></td></tr> <tr><td></td><td><input type="submit" name="submit" value="Labi"><input type="reset" name="reset" value="Notirit"></td></tr> </table> </form> </body> </html> Ble ja tev te vaidzes datu bazi tad LOL... Nevaiga saglabat
Klez Posted February 16, 2005 Report Posted February 16, 2005 (edited) <form name="form1" method="post" action=""> <input name="url" type="text" value="http://imo.console.lv"> <input name="n" type="text" value="Klez maajas lapa"> <input name="submit" type="submit" id="submit" value="Izveidot linku"> </form> <? if (isset($_POST['submit'])){ echo "<a href='".$_POST['url']."' target='_blank'>".$_POST['n']."</a>"; } ?> Edited February 16, 2005 by Klez
Robis Posted February 16, 2005 Report Posted February 16, 2005 Vienīgais ko es toč nesaprotu - kāda jēga šitādam skriptam! :lol:
Klez Posted February 16, 2005 Report Posted February 16, 2005 Ble ja tev te vaidzes datu bazi tad LOL... Nevaiga saglabat 13772[/snapback] peec pogas submit nospieshanas paraadaas triis linki. kaa spiediisi uz linka taa neko neizvadiisi. Neaardies ja nejeedz ko raksti.
Einars Posted February 16, 2005 Author Report Posted February 16, 2005 pat gbook var uztait ar vienu postu neizmantojot MySQL... protams tas posts izdzesisies...
Klez Posted February 16, 2005 Report Posted February 16, 2005 ko tad tu pac savu postu visu laiku luureeesi?? var jau taa... gbook var bez DB uztaisiit. uz failiem
Einars Posted February 16, 2005 Author Report Posted February 16, 2005 (edited) Ble ja tev te vaidzes datu bazi tad LOL... Nevaiga saglabat 13772[/snapback] peec pogas submit nospieshanas paraadaas triis linki. kaa spiediisi uz linka taa neko neizvadiisi. Neaardies ja nejeedz ko raksti. 13775[/snapback] Nu blin $Nosaukums $text Spiezu submit. Paradas zils text uz kura var uzspiet. Uzspiezot uz nosaukums man paradas $text vertiba.... It ka: <a href="$text">$nosaukums</a> Gribas iemacities to debilo PHP :ph34r: Edited February 16, 2005 by Einars
Recommended Posts