x_maras Posted April 7, 2009 Share Posted April 7, 2009 I ve got 2 forms with 2 textareas but they are appeared in my page with extra spaces and with a scroll bar... I post the form here. <form action='' method='POST'> <table> <tr> <th> add category </th> </tr> <tr> <td> category: </td> </tr> <tr> <td> <input type='text' name='category' size='53%'/> </td> </tr> <tr> <td> description: </td> </tr> <tr> <td> <textarea name='description' cols='40' rows='5'> </textarea> </td> </tr> <tr> <td align='right'> <input align='right' type='submit' value='save' /> </td> </tr> </table> </form> I posted here because the php part is ok and the only problem is this. If someone wants to write something in the textarea has to erase the spaces first for not inserting them into the database. the second form is exactly the same that's why I don't post it. Quote Link to comment https://forums.phpfreaks.com/topic/152996-solved-textarea-extra-spaces/ Share on other sites More sharing options...
x_maras Posted April 7, 2009 Author Share Posted April 7, 2009 ok I found it and it was something really stupid in order the code to be beautiful I ve put the close tag below it and took as an initial text all the tabs (spaces). Quote Link to comment https://forums.phpfreaks.com/topic/152996-solved-textarea-extra-spaces/#findComment-803555 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.