I'm trying to display our customers shipping address in a text box to easier copy and paste to our UPS and USPS software. When I do it outside of a textbox the formatting is fine, ie;
echo "$firstname $last name\n";
echo "$ship_to_city, \n";
echo "$ship_to_state \n";
echo "$ship_to_zip\n";
returns the address without any linebreaks, but inside of:
echo "<textarea rows='4' name='shippingaddress' cols='67'>\n";
.
.
.
</textarea>\n";
gives me;
First name
Last Name
Address
and so on with line breaks between each variable. I tried joining them as a single string by defining the address as a single variable, ie;
$fullshipaddress = "$firstname $last_name";
but it still gives me the line breaks in the text box. Is this an html problem? Is there a way to solve this with PHP?
Thanks,
Gerald