runnerjp Posted April 11, 2008 Share Posted April 11, 2008 hey guys ... i have no idea if this is the rite area to post might be html i dunno but i have this <textarea class="input" id="about_me" name="about_me" rows="4" cols="40"><?php echo $message ?></textarea> how can i stop people writing in the box so it just displays the data without them beeing able to input Link to comment https://forums.phpfreaks.com/topic/100684-solved-make-textarea-un-writeable/ Share on other sites More sharing options...
GingerRobot Posted April 11, 2008 Share Posted April 11, 2008 <textarea class="input" id="about_me" name="about_me" rows="4" cols="40" disabled="disabled"><?php echo $message ?></textarea> If this form is then being submitted you'll still need to check the value of it, however. Link to comment https://forums.phpfreaks.com/topic/100684-solved-make-textarea-un-writeable/#findComment-514909 Share on other sites More sharing options...
runnerjp Posted April 11, 2008 Author Share Posted April 11, 2008 huh that easy eh lol somethin new learnt ... noo its not been submitted just had a nice idea on how to use it ty very much Link to comment https://forums.phpfreaks.com/topic/100684-solved-make-textarea-un-writeable/#findComment-514920 Share on other sites More sharing options...
runnerjp Posted April 11, 2008 Author Share Posted April 11, 2008 sorry new thing... is there away to also center <textarea class="input" id="about_me" name="about_me" rows="4" cols="40" disabled="disabled"><?php echo $message ?></textarea> this part <?php echo $message ?> within the text area ?? Link to comment https://forums.phpfreaks.com/topic/100684-solved-make-textarea-un-writeable/#findComment-514923 Share on other sites More sharing options...
conker87 Posted April 11, 2008 Share Posted April 11, 2008 You will have to use styles for that. try: style="align: center" Link to comment https://forums.phpfreaks.com/topic/100684-solved-make-textarea-un-writeable/#findComment-514932 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.