PDA

View Full Version : PHP in textarea, wrongly adding tabs


reyna12
10-02-2006, 04:05 PM
Fixed silly me

It's a form which pulls all details from order into it to attach images which forward all details and images to my email. The from can pull everything else from db no problem but putting the address in a text area seems to add unwanted tabs at the start (See Image).

http://img502.imageshack.us/img502/5876/addresstabsqn9.gif


<textarea name="address" readonly="readonly" cols="50" rows="5" id="address">
<?
$dbbt->p("address_1");
echo("\n");
$dbbt->p("address_2");
echo("\n");
$dbbt->p("city");
?>
</textarea>