Remove spaces from textbox

Posted on 2006-03-20
Last Modified: 2013-12-13

Everytime i put a string from a variable in a textbox

               <textarea STYLE="font-weight: bold;" rows="4" cols="49" wrap="PHYSICAL" maxlength="200">
                    <?php  echo $comment;  ?>

Inside the textbox there are 20 white spaces before the string i've echo...

How can i remove them ?

I've tried to trim the variable but its not the variable...
Because when i echo the var inside the html form there are no spaces...
Question by:CodedK
    1 Comment
    LVL 49

    Accepted Solution


    <textarea STYLE="font-weight: bold;" rows="4" cols="49" wrap="PHYSICAL" maxlength="200"><?php  echo $comment;  ?></textarea>


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now