Page 1 of 1

texterea issue

Posted: Tue Jun 05, 2012 2:14 am
by vlio20
Hi,
I have create a texterea wich body i save on my data base, but when I print it out to the screen (again in texerea tag) I have a big white space at the beginning:
here is a photo:
Image

here is the code:

Code: Select all

<textarea id="massage_body" name="message_in" cols="80" rows="7" maxlength="5000" value="">
						<?php 
						echo "$bodyIn"; ?>
					</textarea>

I tried using trim function. it didn't helped:

Re: texterea issue

Posted: Tue Jun 05, 2012 2:16 am
by vlio20
it should be Message Received

Re: texterea issue

Posted: Tue Jun 05, 2012 7:16 am
by Celauran
All the space between <textarea> and <?php gets included in the text box. This should fix it:

Code: Select all

<textarea id="massage_body" name="message_in" cols="80" rows="7" maxlength="5000"><?php echo $bodyIn; ?></textarea>

Re: texterea issue

Posted: Tue Jun 05, 2012 7:54 am
by vlio20
Thanks