CodedK
asked on
Remove spaces from textbox
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...
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...
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.