Jump to content

[SOLVED] textarea extra spaces


x_maras

Recommended Posts

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.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.