Forum Moderators: open

Message Too Old, No Replies

Protected form field

         

PeteM

6:36 pm on Oct 3, 2005 (gmt 0)

10+ Year Member



Is it possible to create a protected form field in HTML? That is a field that shows an initial value but does not allow the user to overwrite the value?

Thanks, Pete

jatar_k

6:51 pm on Oct 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I assume you want to submit this data with the form?

if so then the only thing I can think of is to display it normally and then use a hidden field to submit it.

PeteM

6:53 pm on Oct 3, 2005 (gmt 0)

10+ Year Member



Ah, found the answer....

<input name="#*$!xx" class="post" type="text" value="hello" readonly="true">

Pete