I've got a very basic webform. I'm grabbing 7 fields. However, when I grab the data from the form and put it into the email body, it all runs together.
My script looks like this:
enter_btn.addEventListener(MouseEvent.CLICK, sendData);
function sendData(evtObj:MouseEvent):void{
trace(name_txt.text);
trace(email_txt.text);
trace(cem_name_txt.text);
trace(cem_addr_txt.text);
trace(marker_txt.text);
trace(plot_txt.text);
trace(special_txt.text);
var theEmail:URLRequest = new URLRequest("mailto:info@headstoneguardian.com?from="+
email_txt.text+"&subject=Headstone Guardian Plot Info&body="+
name_txt.text '\r\n'+
email_txt.text+
cem_name_txt.text+
cem_addr_txt.text+
marker_txt.text+
plot_txt.text+
special_txt.text
);
navigateToURL(theEmail);
}
However, my data comes out like this:
Chris Popovicchrispopovic@gmail.comGreen Acres Cemetery123 Anywhere StreetJohnson
I want the email body to look like this.
Chris Popovic
Green Acres Cemetery
123 Anywhere Street
Johnson
Now that I look at the data, I see that the last field I'm collecting isn't coming into the email body.
I just want to put carriage returns between the data. And of course, capture all the data.
I'm an actionscript noob. Please help.
FYI, website wtih live form is here: www.headstoneguardian.com/
Thanks in advance!
Chris