cazmo Posted December 24, 2006 Share Posted December 24, 2006 Greetings everyone,I have a php textarea and would like to set a default prompt that is not editable by the user. How can I do that? Thanks. Link to comment https://forums.phpfreaks.com/topic/31771-set-text-to-be-not-editable-in-php-textarea/ Share on other sites More sharing options...
Orio Posted December 24, 2006 Share Posted December 24, 2006 Nothing to do with php, pure HTML:[code]<form><textarea readonly>You cant touch me</textarea></form>[/code]Orio. Link to comment https://forums.phpfreaks.com/topic/31771-set-text-to-be-not-editable-in-php-textarea/#findComment-147358 Share on other sites More sharing options...
cazmo Posted December 25, 2006 Author Share Posted December 25, 2006 Thank you for reply Orio. Sorry for mentioning it in my original post but would I wanted to do is make the string in the textarea uneditable but allow for the user to enter text. For example providing the C:\ after everytime the user presses the enter key. I'm trying to create a command line emulator. Thanks. Link to comment https://forums.phpfreaks.com/topic/31771-set-text-to-be-not-editable-in-php-textarea/#findComment-147521 Share on other sites More sharing options...
tastro Posted December 12, 2008 Share Posted December 12, 2008 hmm..... not sure if i did understood you right:> <form> <textarea>c:\</textarea> </form> Link to comment https://forums.phpfreaks.com/topic/31771-set-text-to-be-not-editable-in-php-textarea/#findComment-713220 Share on other sites More sharing options...
gevans Posted December 12, 2008 Share Posted December 12, 2008 Why don't you use javascript or php to manipulate the string after it's been submitted Link to comment https://forums.phpfreaks.com/topic/31771-set-text-to-be-not-editable-in-php-textarea/#findComment-713237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.