I'm trying to get a mailing address to appear in a stacked format in my form mail email return.
The address is selected by the user from a drop down list then the form is submitted. It runs through a PHP form handler and is output as an HTML email.
I understand that something like this would possibly work, though it appears that there are a few variations.
$address = str_replace(",", ",\n", $_POST["shippingaddress"]);
The thing I'm really not sure about is where in the PHP form handler to insert this line of code?
Here's a link to the code for the form handler.
http://scavanaugh.com/TESTfm.txt
Any help with this is much appreciated.