unreal Posted May 25, 2005 Author Report Share Posted May 25, 2005 nu nomaiinju to print uz echo un tos parejos arii bet tagad man raada to pashu tikai ar echo $_POST['vards'] utt Link to comment Share on other sites More sharing options...
bubu Posted May 25, 2005 Report Share Posted May 25, 2005 (edited) Atkārtošos: iemācies lietot Edit pogu šajā forumā. Varbūt tev konfigurācijā nav atļauti <? tegi. Lieto <?php Un nedali stringu pa vairākām rindām. raksti tur katru print visu vienā rindā. Tev vispār php ir uzinstalēts? Izveidot vienu failu abc.php ar vienu rindiņu: <?php phpinfo(); ?> un atver to browserī. Ko rāda? Edited May 25, 2005 by bubu Link to comment Share on other sites More sharing options...
unreal Posted May 25, 2005 Author Report Share Posted May 25, 2005 logiski ka ir :DD tik stulbs jau es neesmu!! uzstadits man ir easy php un vins ver valaa php failus!! jau izmegjinaju Link to comment Share on other sites More sharing options...
unreal Posted May 25, 2005 Author Report Share Posted May 25, 2005 bubu tu teixim vari uzraxtiit kaadu piemeru seit un paraadiit kaa no vienas web lapas teixim form.htm var ieguut informaaciju otraa web lapaa teixim gatavs.php ?? Link to comment Share on other sites More sharing options...
unreal Posted May 25, 2005 Author Report Share Posted May 25, 2005 (edited) mjaa man tas scripts ar kaut kaa neiet nu tur vinam uzreiz vajg straadat?? pec informaacijas ievadiishanas vins man paraada: 'vards', 'Uzvārds' => 'uzv', 'Vecums' => 'gadi', 'E-mails' => 'mails', 'Adrese' => 'adr', 'Telefons' => 'tel'); echo ''; foreach($dati as $name => $value) { echo ' '.$name.' '. (isset($_POST[$value]) ? $_POST[$value] : 'unknown').' '; } echo ' '; ?> Edited May 25, 2005 by unreal Link to comment Share on other sites More sharing options...
Agnisr Posted May 25, 2005 Report Share Posted May 25, 2005 ieksh www.liis.lv pameklee buus tur graamata HTML iesaaceejiem, saucas webgrama laikam, tur viss LV valodaa saprotami ar piemeeriem buus apraxtiits! <h>virsraxts</h> <tr>sadala tabulu pa ruutinjaam</tr> <td>tabulas kolonna ja var taa teikt</td> par <n> nezinu neesmu nekur htmlaa taadu redzeejis nju praktiski lai skaidraak vareetu buut taa <table> <tr> <td>texts</td> <td>texts2</td> </tr> <tr> <td>naakamaa ruutinja kas atradiisies zem TEXTS</td> <td>naakamaa ruutinja kas atradiisies zem TEXTS2</td> </tr> </table> Gan jau no piemeera sapratiisi kaa veidojas tabulas Link to comment Share on other sites More sharing options...
bubu Posted May 25, 2005 Report Share Posted May 25, 2005 (edited) mjaa un man ir jautaajums ko dara : <h3> <td> <tr> un <n> ?? 17964[/snapback] Atļaušos atkārtoties: iemācies lietot Edit pogu šajā forumā. Šos visus tagus vari iemācīties/apsaktīties, ko tie dara šeit: http://www.w3.org/TR/html4/ forma.html <html> <head><title>Ievadi savu kontaktinformāciju</title></head> <body> <h3>Ievadi savu kontaktinformāciju:</h3> <form action="form_parse.php" method="post"> <table> <tr><td>Vārds:</td><td><input type="text" name="vards"></td></tr> <tr><td>Uzvārds:</td><td><input type="text" name="uzv"></td></tr> <tr><td>Vecums:</td><td><input type ="text" name="gadi"></td></tr> <tr><td>E-mails :</td><td><input type="text" name="mails"></td></tr> <tr><td>Adrese:</td><td><input type="text" name="adr"></td></tr> <tr><td>Telefons:</td><td><input type="text" name="tel"></td></tr> <tr><td><input type="submit" name="submit" value="Apstiprināt"></td> <td><input type="reset" name="reset" value="Dzēst"></td></tr> </table> </form> </body> </html> forma_parse.php <html> <head><title>Informācija pieņemta!</title></head> <body> <?php if (!isset($_POST['submit']) || $_POST['submit']!='submit') { echo 'h4x0r?'; } else { echo '<h3>Paldies par sniegto informāciju, '.post('vards', '???'). 'Tu apstiprināji sekojošu informāciju: </h3>'; $dati = array( 'Vārds' => 'vards', 'Uzvārds' => 'uzv', 'Vecums' => 'gadi', 'E-mails' => 'mails', 'Adrese' => 'adr', 'Telefons' => 'tel'); echo '<table>'; foreach($dati as $name => $value) { echo '<tr><td>'.$name.'</td><td><b>'. (isset($_POST[$value]) ? $_POST[$value] : 'unknown').'</b></td></tr>'; } echo '</table>'; ?> </body> </html> Edited May 25, 2005 by bubu Link to comment Share on other sites More sharing options...
0x13hst Posted May 25, 2005 Report Share Posted May 25, 2005 Es macijos programmet no Aleksandra Zivarta gramatas "PHP-soli pa solim" Nopirku veikala pa 4ls taja laika. Nesen pardevu citam kas grib apgut PHP. Pateiskhu vienu gramata visi skripti kodeti uz register_globals on bet musdienas visiem serveriem standarta ir off. _http://dklab.ru/img/book_php5.jpg PHP5 (серия «В подлиннике»), 1120 стр. Авторы: Д. Котеров, А. Костарев. Es ka shi gramata iznaca nopirku. Diezgan normala bet isti dazas lietas nepatik. Bet tomer iesaku nopirkt. piebilde. es vel joprojam laga nemaku html un css. kaut vai paskataties uz manas lapas vienkarsho dizainu. Link to comment Share on other sites More sharing options...
Robis Posted May 25, 2005 Report Share Posted May 25, 2005 register globals off - viss ir pareizi Tā grāmatā tādā gadījumā ir nedaudz **** Link to comment Share on other sites More sharing options...
unreal Posted May 26, 2005 Author Report Share Posted May 26, 2005 (edited) nuu aizbraukshu nopirkshu to grāmatu!! :) un tur php scripti arii ir ja?? nu cerams !!es domaaju php scriptu paraugi !! jo no php neko nejeedzu zinu ka saakumaa jaliek <? vai <?php un beigas php scriptam jaaliek >? tātad biju iegaajis hack.nite.lv noka4aju ebook php soli pa solim bet kad gribeeju izmeegjinat form scriptu tad vins bija nepareizi uzraxtits. daudz no vineiem nesaprotu bet saprotu ka vins negaaja!! viens web lapaa saucaas form.htm un otra parse_form.php !! Edited May 26, 2005 by unreal Link to comment Share on other sites More sharing options...
unreal Posted July 5, 2005 Author Report Share Posted July 5, 2005 <?php if (!isset($_POST['submit']) || $_POST['submit']!='submit') { echo 'h4x0r?'; } else { echo '<h3>Paldies par sniegto informaciju, '.post('vards', '???'). 'Tu apstiprinaji sekojosu informaciju: </h3>'; $dati = array( 'Vards' => 'vards', 'Uzvards' => 'uzv', 'Vecums' => 'gadi', 'E-mails' => 'mails', 'Adrese' => 'adr', 'Telefons' => 'tel'); echo '<table>'; foreach($dati as $name => $value) { echo '<tr><td>'.$name.'</td><td><b>'. (isset($_POST[$value]) ? $_POST[$value] : 'unknown').'</b></td></tr>'; } echo '</table>'; ?> </body> </html> Parse error: parse error in c:\program files\easyphp1-8\www\form_parse.php on line 27 kur ir koda kljuuda??? Link to comment Share on other sites More sharing options...
v3rb0 Posted July 5, 2005 Report Share Posted July 5, 2005 saskaiti atverošās un aizverošās figūriekavas. Link to comment Share on other sites More sharing options...
Recommended Posts