ArnisR Posted July 21, 2010 Report Share Posted July 21, 2010 (edited) Ir parasta HTML forma. Vienā no tās INPUT (type = text) laukiem ir jau piešķirta VALUE. Kā izdarīt tā, lai tās vērtību nebūtu iespējams rediģēt, tomēr šī vērtība tiktu nodota PHP apstrādes failam kā POST mainīgais? Edited July 21, 2010 by ArnisR Quote Link to comment Share on other sites More sharing options...
snach15 Posted July 21, 2010 Report Share Posted July 21, 2010 (edited) varbūt kā hidden field uztaisi jeb arī maxlength uzliec 0 Edited July 21, 2010 by snach15 Quote Link to comment Share on other sites More sharing options...
ArnisR Posted July 21, 2010 Author Report Share Posted July 21, 2010 Būtībā varētu arī ar hidden, bet gribas, lai formas aizpildītājs redzētu to vērtību. Quote Link to comment Share on other sites More sharing options...
snach15 Posted July 21, 2010 Report Share Posted July 21, 2010 nu tad liec maxlength="0" un nevarēs to value labot Quote Link to comment Share on other sites More sharing options...
werd Posted July 21, 2010 Report Share Posted July 21, 2010 readonly Quote Link to comment Share on other sites More sharing options...
ArnisR Posted July 21, 2010 Author Report Share Posted July 21, 2010 readonly Paldies, tieši tas, kas vajadzīgs! Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 22, 2010 Report Share Posted July 22, 2010 Ir vēl variants. <input disabled='disabled' value='Te nu es arī palikšu! =P' /> Protams, abus variantus varēs labot (kut vai ar FireBug), tikai to nedarīs ierindas lietotājs. =) Quote Link to comment Share on other sites More sharing options...
indoom Posted July 22, 2010 Report Share Posted July 22, 2010 disabled lauki netiek padoti uz postu Quote Link to comment Share on other sites More sharing options...
briedis Posted July 22, 2010 Report Share Posted July 22, 2010 Readonly tāpat var rediģēt... Variants, nemaz nedot lietotājam to vērtību, bet paturēt serverī, sesijā... Quote Link to comment Share on other sites More sharing options...
marcis Posted July 22, 2010 Report Share Posted July 22, 2010 briedis - sahax0rzojot var labot da jebko, defaultā brouzeris readonly laukus labot neļauj. Quote Link to comment Share on other sites More sharing options...
briedis Posted July 22, 2010 Report Share Posted July 22, 2010 briedis - sahax0rzojot var labot da jebko, defaultā brouzeris readonly laukus labot neļauj. Protams, bet, man ir aizdomas, ka lietotājs tur vēlas ko svarīgu glabāt, kādu ID piemēram.. Quote Link to comment Share on other sites More sharing options...
ArnisR Posted July 22, 2010 Author Report Share Posted July 22, 2010 viss ok, neviens to nemēģinās labot, jo tā forma domāta administrācijas panelim, kuram piekļūt varēs tikai atsevišķi personāži. Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 22, 2010 Report Share Posted July 22, 2010 disabled lauki netiek padoti uz postu O! Nezināju... Paldies. =) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.