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> Quote Link to comment 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\"> Quote Link to comment 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 Quote Link to comment 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\"> Quote Link to comment 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> Quote Link to comment 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> Quote Link to comment 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. Quote Link to comment 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 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.