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
https://forums.phpfreaks.com/topic/152996-solved-textarea-extra-spaces/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.