leisure Posted June 7, 2005 Report Share Posted June 7, 2005 HTMl skriptc source: HTML skripc Ka uztaisiit to murgu eertaaku, un kaa izveidot php kodu??? input lauka name + komandasID, piem pos_2015, taa izdariiju lai uzzinaatu kuri komandai apdeitot. Man tur bik nepareizi, ID neatkaartosies!!! Paldies! Link to comment Share on other sites More sharing options...
Delfins Posted June 7, 2005 Report Share Posted June 7, 2005 ja godīgi - nesapratu tavu jautājumu... domāji šito ?? print '<input class="userlab" size="1" type="text" name="gpl['.$KOMANDADS_ID.']" value="0">'; submitosies kā masīvi... Link to comment Share on other sites More sharing options...
leisure Posted June 7, 2005 Author Report Share Posted June 7, 2005 nju lab izmantosim to metoodi, a kas tur ir jaizmanto while vai for un kaa??? Link to comment Share on other sites More sharing options...
Delfins Posted June 7, 2005 Report Share Posted June 7, 2005 nu primkārt katrā blokā jāieliek pa hidden laukam ar nosaukumu pos[$commandId] un value="$commandId" tad pie postēšanas foreach ( $_POST['pos'] AS $commandId ) { $int_lauks = @ (int) $_POST['int_lauks'][$commandId]; // integer vērtības } Link to comment Share on other sites More sharing options...
arnico Posted June 7, 2005 Report Share Posted June 7, 2005 jautaajums gan gjeniaali uzrakstiits :) tikai peec atbildeem saaku iebraukt :) Link to comment Share on other sites More sharing options...
leisure Posted June 7, 2005 Author Report Share Posted June 7, 2005 tad kad nospiesta poga ir jaraxta foreach(lauks1 as ...) foreach(lauks2 as ...) foreach(lauks3 as...) ??? Link to comment Share on other sites More sharing options...
leisure Posted June 7, 2005 Author Report Share Posted June 7, 2005 to arnico: nu jaa jautaajumui uzdoshaman man to4 ir probleema :/// Link to comment Share on other sites More sharing options...
Delfins Posted June 7, 2005 Report Share Posted June 7, 2005 to arnico: nu jaa jautaajumui uzdoshaman man to4 ir probleema :/// 18339[/snapback] tad es tev ieteiktu 1.) izlasīt grāmatu `Kā pareizi uzdot jautājumus` 2.) uzdot jautājumu bet pirmkārt, padomāt, vai tur tiešam tev ir kur problēma... Link to comment Share on other sites More sharing options...
Delfins Posted June 7, 2005 Report Share Posted June 7, 2005 tad kad nospiesta poga ir jaraxtaforeach(lauks1 as ...) foreach(lauks2 as ...) foreach(lauks3 as...) ??? 18338[/snapback] b***, es takš tev uzrakstīju.. vai tiešām vajag tā kā dumiķim ??? foreach ( $_POST['pos'] AS $commandId ) { $int_lauks = @ (int) $_POST['int_lauks'][$commandId]; // integer 1 vērtības $int2_lauks = @ (int) $_POST['int2_lauks'][$commandId]; // integer 2 vērtības $int3_lauks = @ (int) $_POST['int3_lauks'][$commandId]; // integer 3 vērtības $int4_lauks = @ (int) $_POST['int4_lauks'][$commandId]; // integer 4 vērtības $txt_lauks = @ trim( $_POST['txt_lauks'][$commandId] ); // text 1 vērtības $txt2_lauks = @ trim( $_POST['txt2_lauks'][$commandId] ); // text 2 vērtības } Link to comment Share on other sites More sharing options...
bubu Posted June 7, 2005 Report Share Posted June 7, 2005 http://www.catb.org/~esr/faqs/smart-questions.html Link to comment Share on other sites More sharing options...
Delfins Posted June 7, 2005 Report Share Posted June 7, 2005 aha, Revision History Revision 3.1 28 Oct 2004 esr Document 'Google is your friend!' Link to comment Share on other sites More sharing options...
bubu Posted June 7, 2005 Report Share Posted June 7, 2005 Tas datums po. Doma(s), kas tur iekšā, ir aktuālas tāpatās. Link to comment Share on other sites More sharing options...
Delfins Posted June 7, 2005 Report Share Posted June 7, 2005 Tas datums po. Doma(s), kas tur iekšā, ir aktuālas tāpatās. 18347[/snapback] ne jau par datumu iet runa... Vari mācīt cik gribi tādiem, bet tāpat jamie paspēs iespamot kādu bezjēdzīgu topiku Link to comment Share on other sites More sharing options...
bubu Posted June 7, 2005 Report Share Posted June 7, 2005 (edited) Ā sapratu tevi. Revision 3.1 :) Edited June 7, 2005 by bubu Link to comment Share on other sites More sharing options...
Recommended Posts