therelelogo Posted August 19, 2010 Share Posted August 19, 2010 Hi, very simple i'm sure... i have a code for a text box to pull info into from a mysql table. easy enough: <?php echo "<input type=\"text\" id=\"b_info\" name=\"b_info\" value=\"$b_info\" style=\"width: 327px\" /text>"; ?> but suppose i dont just want a "line of text" i want one of those boxes with the scroll bar down the side (lol like the one im writing this in ) how do i change the above code to do it? i though doing this: <?php echo "<input type=\"textarea\" id=\"b_info\" name=\"b_info\" value=\"$b_info\" style=\"width: 327px\" style=\"height: 185px\" /textarea>"; ?> would work, but obviously not, all ive done is make the box bigger easy workaround? Thanks Link to comment https://forums.phpfreaks.com/topic/211127-ermtext-textarea-querynot-as-simple-as-i-thought/ Share on other sites More sharing options...
MasterK Posted August 19, 2010 Share Posted August 19, 2010 Like this? <?php echo "<textarea id=\"b_info\" name=\"b_info\" style=\"width: 327px; height: 185px\">$b_info</textarea>"; ?> Link to comment https://forums.phpfreaks.com/topic/211127-ermtext-textarea-querynot-as-simple-as-i-thought/#findComment-1101035 Share on other sites More sharing options...
therelelogo Posted August 19, 2010 Author Share Posted August 19, 2010 Like this? <?php echo "<textarea id=\"b_info\" name=\"b_info\" style=\"width: 327px; height: 185px\">$b_info</textarea>"; ?> yup, exactly like that thank you very much Link to comment https://forums.phpfreaks.com/topic/211127-ermtext-textarea-querynot-as-simple-as-i-thought/#findComment-1101039 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.