[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Remove spaces from textbox

Posted on 2006-03-20
1
Medium Priority
?
1,475 Views
Last Modified: 2013-12-13
Hi.

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;  ?>
                </textarea>

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...
0
Comment
Question by:CodedK
1 Comment
 
LVL 49

Accepted Solution

by:
Roonaan earned 1000 total points
ID: 16236046
Use:

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

-r-
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to implement server side field validation and display customized error messages to the client.
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…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

829 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