spa Posted May 26, 2006 Report Share Posted May 26, 2006 Sveicinaati, man te radaas jautaajums, kaa ir iespeejams atstaat ievadiitaas veertiibas laukaa, peec neveiksmiiga formas submita. es atradu shaadu variantu, bet tas buutu deriigs tikai tad ja neizvadiitu to nokluseeto veertiibu aaraa, vai ir iespeejams sho veertiibu nosleept. <td width="76%"><input name="first_name" type="text" id="first_name" value="<? echo $first_name; ?>"></td> Liels paldies jau ieprieksh! Link to comment Share on other sites More sharing options...
bubu Posted May 26, 2006 Report Share Posted May 26, 2006 http://laacz.lv/tmp/ctest.htm Link to comment Share on other sites More sharing options...
SkyD Posted May 26, 2006 Report Share Posted May 26, 2006 <input name="first_name" type="text" id="first_name" value="<? echo $_POST['first_name']; ?>"> Link to comment Share on other sites More sharing options...
spa Posted May 26, 2006 Author Report Share Posted May 26, 2006 a kaut kas bez javascript arii ir kaut kur pieejams. SkyD jebkuraa gadiijumaa man izvadaas tas <? echo $_POST['first_name']; ?>, formas laucinjaa. nav iespeejams vinju kaut kaa apsleept? Link to comment Share on other sites More sharing options...
SkyD Posted May 26, 2006 Report Share Posted May 26, 2006 Pag, tad tev vajag, lai viņš tajā lauciņā parādās, vai nē? Ja nevajag, tad value atstāj tukšu. value="" Link to comment Share on other sites More sharing options...
spa Posted May 26, 2006 Author Report Share Posted May 26, 2006 Laikam jau no saakta gala nepareizi noformuleeju to ko veelos. Taatad es veelos lai lietotaajs aizpildot formu un neievadot kaut kaadu lauku, paaec submita atgriezhoties pie formas, nebuutu zaudeejis ieprieksh ievadiitaas veertiibas, it kaa tas ko SkyD bija uzrakstiijis neljauj zaudeet veertiibas, bet saakotneeji ielaadeejot formu paaraadaas jau tajaa laucinjaa. bet kaa ir iespeejams, lai saakotneeji ielaadeejot formu laucinjsh buutu tuksh, bet paarlaadeejot saglabaatu lietotaaja aizpildiitos laukus, neizmantojot javascript Link to comment Share on other sites More sharing options...
Blitz Posted May 26, 2006 Report Share Posted May 26, 2006 (edited) if (isset($_POST['value'])) { $value=$_POST['value']; } else { $value=""; } echo "<input type=text value='$value'>"; Sitaa? Edited May 26, 2006 by Blitz Link to comment Share on other sites More sharing options...
spa Posted May 26, 2006 Author Report Share Posted May 26, 2006 Ja es teiksim formu lietoju ieksh html, bet submitojot izsaucu php, tad jebkuraa gadiijumaa ievades laukaa, saakotneeji ielaadeejot formu paraadaas ieprieksh nodefineetaa veertiibaa, kaut kaa nav iespeejams to nosleept? Link to comment Share on other sites More sharing options...
Blitz Posted May 26, 2006 Report Share Posted May 26, 2006 Nu ja negribi lai pazustu taas vertibas, ko vins jau ir submitojis, tad tai dalaa kur izsauc php vienkarsi pieglabaa vinas sesijaa... $_SESSION['vecaa_veriba']=$_POST['vecaa_vertiba']; Un pec tam kad busi atgriezies pie ievades formas, tev ievades lauki bus tuksi bet vecas vertibas saglabasies sesijaa... ja tas ir tas ko velies, gruti iebraukt... Link to comment Share on other sites More sharing options...
spa Posted May 29, 2006 Author Report Share Posted May 29, 2006 Paldies visiem par padomiem, es laikam atkal paarspeeju sevi meistariibaa. bet nu neesmu veel noleemis mest plinti kruumos. Link to comment Share on other sites More sharing options...
Recommended Posts