adzie Posted October 26, 2007 Share Posted October 26, 2007 can anyone explain how to edit this line to show the record but greyed out so it can't be edited thanks? <td>".$Body."<strong>Name</strong></font></u></b></td><td><input type=\"text\" name=\"name\" value=\"".$row['2']."\"></td> Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/ Share on other sites More sharing options...
SammyGunnz Posted October 26, 2007 Share Posted October 26, 2007 <input type=\"text\" name=\"name\" value=\"".$row['2']." readonly\"> Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378953 Share on other sites More sharing options...
adzie Posted October 26, 2007 Author Share Posted October 26, 2007 thanks but all that does is add readonly to the end of the result Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378955 Share on other sites More sharing options...
darkfreaks Posted October 26, 2007 Share Posted October 26, 2007 <input type=\"text\" name=\"name\" value=\"".$row['2']." DISABLED\"> Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378959 Share on other sites More sharing options...
SammyGunnz Posted October 26, 2007 Share Posted October 26, 2007 It actually makes the field uneditable. I just misread your code... <input type=\"text\" name=\"name\" value=\"".$row['2']."\" readonly> Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378961 Share on other sites More sharing options...
darkfreaks Posted October 26, 2007 Share Posted October 26, 2007 <input type=\"text\" name=\"name\" value=\"".$row['2']."/" DISABLED> Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378962 Share on other sites More sharing options...
SammyGunnz Posted October 26, 2007 Share Posted October 26, 2007 Yep...disabled also dims/greys out the field. Either will work for making it uneditable. Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378963 Share on other sites More sharing options...
adzie Posted October 26, 2007 Author Share Posted October 26, 2007 <input type=\"text\" name=\"name\" value=\"".$row['2']."\" DISABLED> worked thanks Link to comment https://forums.phpfreaks.com/topic/74943-solved-create-uneditable-field/#findComment-378964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.