Re: textarea curiousity



Yup. That was it. I put them all in-line and it is OK.

This is something that bugged me before and when I ran into it again, I
thought I'd ask.

Thanks.

Shelly

"Rik" <luiheidsgoeroe@xxxxxxxxxxx> wrote in message
news:79065$44bbb17a$8259c69c$22151@xxxxxxxxxxxxxxxxxxx
strawberry wrote:
Sheldon Glickler wrote:
I use Dreamweaver as my development IDE.

When I create a textarea, put stuff in, save it to the database, and
recall it to the textarea later, it alway comes up with what looks
like a large tab spacing in the beginning. If I save it back, it
comes back the same way. If I delete the leading stuff and save it
again, it still comes back exactly the same.

This is only for the first paragraph so I suspect there are some
leading characters that I don't know about. How can I get it to
display starting at the left edge?

Shelly

Not sure. I've seen this problem before though - and on those
occasions
the culprit has been blank space or carriage returns in the html. Have
a look at the source code and see if there are any obvious spaces that
might produce this error.

Yup, when you try to format your HTML code nicely using:
echo "<textarea>
{$content}
</texteare>";
(or echo "<textarea>\n\t{$content}\n</textarea>";),
the whitespace will be saved.

Try echo "<textarea>{$content}</textarea>";
And check the source indeed.

Grtz.
--
Rik Wasmus




.



Relevant Pages

  • Re: textarea curiousity
    ... recall it to the textarea later, it alway comes up with what looks ... a look at the source code and see if there are any obvious spaces that ...
    (comp.lang.php)
  • Extracting Source Code
    ... Is there a way of processing an ASP page and placing the resulting HTML ... source code into a TEXTAREA on another page? ... would then paste it into my form field on the relevant page. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Extracting Source Code
    ... > HTML source code into a TEXTAREA on another page? ... > compiled source code for use in an electronic newsletter. ... I would then paste it into my form field on the relevant page. ... This email account is my spam trap so I ...
    (microsoft.public.inetserver.asp.general)
  • Re: getting textfile data into textarea
    ... look at source code ... Is it possible to get textfile data into textarea using VBScript....i ... when i click on any item in the select box, it will pull the data from ...
    (microsoft.public.scripting.vbscript)
  • Re: Using html tags pulled from an Access database in ASP page
    ... If a user enters a carriage return in a textarea it will be stored - no need ... Take whatever they type into the textarea and shove it into the database. ... If you're displaying it on a web page then you can replace ...
    (microsoft.public.inetserver.asp.general)