zgkhoo Posted November 20, 2007 Share Posted November 20, 2007 <td><input type='text' name='id' value=$row[iD]></td> Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/ Share on other sites More sharing options...
rajivgonsalves Posted November 20, 2007 Share Posted November 20, 2007 <td><input type='text' name='id' value=$row[iD] onfocus="blur()"></td> Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/#findComment-395190 Share on other sites More sharing options...
zgkhoo Posted November 20, 2007 Author Share Posted November 20, 2007 js??? Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/#findComment-395205 Share on other sites More sharing options...
fenway Posted November 20, 2007 Share Posted November 20, 2007 js??? You could use the readonly attribute. Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/#findComment-395248 Share on other sites More sharing options...
phpQuestioner Posted November 21, 2007 Share Posted November 21, 2007 fenway is exactly right - do this: <td><input type='text' name='id' value='$row[iD]' readonly></td> or you could just hide the field all together - like this: <td><input type='hidden' name='id' value='$row[iD]'></td> Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/#findComment-395660 Share on other sites More sharing options...
Azu Posted November 25, 2007 Share Posted November 25, 2007 Just remember that any idiot can easily just save the page and remove that tag, so obviously something like this must never be used for security. Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/#findComment-398791 Share on other sites More sharing options...
phpQuestioner Posted November 25, 2007 Share Posted November 25, 2007 azu - this is true, but they should also be validating on server side as well and if their not; they need to be. Quote Link to comment https://forums.phpfreaks.com/topic/78066-solved-how-to-make-this-uneditable/#findComment-398946 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.