Decarn Posted November 7, 2006 Share Posted November 7, 2006 Hi guys,I have this code as below.[code]<INPUT SIZE="30" MAXLENGTH="50" TYPE="Text" NAME="txt_nh_pr_no" VALUE="<? echo antiSlash($nh_pr_no); ?>"> [/code]I want to change it to label so that users can only view the data but not able to edit it. Link to comment https://forums.phpfreaks.com/topic/26425-how-to-change-a-text-box-to-a-label/ Share on other sites More sharing options...
JasonLewis Posted November 7, 2006 Share Posted November 7, 2006 just add the word disabled in there. like this:[code]<INPUT SIZE="30" MAXLENGTH="50" TYPE="Text" NAME="txt_nh_pr_no" VALUE="<? echo antiSlash($nh_pr_no); ?>" disabled>[/code] Link to comment https://forums.phpfreaks.com/topic/26425-how-to-change-a-text-box-to-a-label/#findComment-120843 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.