Forums

This topic is locked

Locking Text Form Boxes

Posted 20 Aug 2005 12:52:37
1
has voted
20 Aug 2005 12:52:37 Chris Trace posted:
Hey there,

Does anyone have a little tip for doing this if possible.

I have an input text field as part of a form which is automatically filled in from a php recordset query which is then posted into a new table.

Is there a way (easliy) to have that input field non editable - ie the data return cannot be altered by a user?

Any help would be great.

Thanks

Replies

Replied 20 Aug 2005 21:26:35
20 Aug 2005 21:26:35 Dave Thomas replied:
you can either not write it into a form box, but just display the info instead.

or

you can use the 'disabled' keyword in your code of the textbox.

regards

Dave Thomas
<b>DMX Zone Manager</b>
Replied 20 Aug 2005 21:41:34
20 Aug 2005 21:41:34 Chris Trace replied:
Dave,

you can either not write it into a form box, but just display the info instead.

this is needed because the text that is the echo php is required as data entry to the next form

or

you can use the 'disabled' keyword in your code of the textbox.

will this not disable submission to database?

regards
Replied 21 Aug 2005 13:53:42
21 Aug 2005 13:53:42 Dave Thomas replied:
i only ever used the disable keyword once for a project, but from what i recall it just locked (greyed-out) the box, didnt stop it submitting data. That was on a small Access project, but i'm fairly certain it still allowed me to post articles.

doesn't hurt to try

regards

Dave Thomas
<b>DMX Zone Manager</b>

Reply to this topic