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